Sync app settings at login/registration instead of page load

This commit is contained in:
Bubka
2025-02-26 18:32:20 +01:00
parent 4ef76e0ae9
commit f3945463b7
11 changed files with 71 additions and 40 deletions

View File

@ -6,6 +6,7 @@ import { useColorMode } from '@vueuse/core'
import { useTwofaccounts } from '@/stores/twofaccounts'
import { useGroups } from '@/stores/groups'
import { useNotifyStore } from '@/stores/notify'
import { useAppSettingsStore } from '@/stores/appSettings'
export const useUserStore = defineStore({
id: 'user',
@ -98,6 +99,7 @@ export const useUserStore = defineStore({
this.$reset()
this.initDataStores()
this.applyUserPrefs()
useAppSettingsStore().$reset()
router.push({ name: 'login' })
},