personalSetting.ts 496 B

1234567891011121314151617
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { defineStore } from 'pinia'
  3. import { ref } from 'vue'
  4. export const usePersonalSettingStore = defineStore('personalSetting', () => {
  5. const previousPersonalSettingPath = ref('/personal-setting/appearance')
  6. const setPreviousPersonalSettingScreen = (path: string) => {
  7. previousPersonalSettingPath.value = path
  8. }
  9. return {
  10. previousPersonalSettingPath,
  11. setPreviousPersonalSettingScreen,
  12. }
  13. })