fix(user): lint
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2023-06-12 16:22:15 +02:00
parent aab2020e68
commit cd8e497b24
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 3 additions and 5 deletions

View File

@ -3,8 +3,6 @@ import {createSharedComposable, usePreferredColorScheme, tryOnMounted} from '@vu
import type {BasicColorSchema} from '@vueuse/core'
import {useAuthStore} from '@/stores/auth'
const STORAGE_KEY = 'color-scheme'
const DEFAULT_COLOR_SCHEME_SETTING: BasicColorSchema = 'light'
const CLASS_DARK = 'dark'

View File

@ -18,7 +18,7 @@ export default class UserSettingsModel extends AbstractModel<IUserSettings> impl
frontendSettings: IFrontendSettings = {
playSoundWhenDone: true,
quickAddMagicMode: PrefixMode.Default,
colorSchema: 'auto'
colorSchema: 'auto',
}
constructor(data: Partial<IUserSettings> = {}) {

View File

@ -69,7 +69,7 @@ export const useAuthStore = defineStore('auth', () => {
isLoadingGeneralSettings.value = isLoading
}
function setUser(newUser: IUser | null, saveSettings: boolean = true) {
function setUser(newUser: IUser | null, saveSettings = true) {
info.value = newUser
if (newUser !== null) {
reloadAvatar()
@ -99,7 +99,7 @@ export const useAuthStore = defineStore('auth', () => {
quickAddMagicMode: PrefixMode.Default,
colorSchema: 'auto',
...newSettings.frontendSettings,
}
},
})
// console.log('settings from auth store', {...settings.value.frontendSettings})
}