1
0

feat(user): migrate color scheme settings to persistance in db

This commit is contained in:
kolaente
2023-06-12 15:57:18 +02:00
parent 4b0022664a
commit 5325f6d7d9
5 changed files with 18 additions and 32 deletions

View File

@ -94,12 +94,14 @@ export const useAuthStore = defineStore('auth', () => {
settings.value = new UserSettingsModel({
...newSettings,
frontendSettings: {
...newSettings.frontendSettings,
// Need to set default settings here in case the user does not have any saved in the api already
playSoundWhenDone: true,
quickAddMagicMode: PrefixMode.Default,
colorSchema: 'auto',
...newSettings.frontendSettings,
}
})
console.log(settings.value.frontendSettings)
console.log('settings from auth store', {...settings.value.frontendSettings})
}
function setAuthenticated(newAuthenticated: boolean) {