work on local-only settings

This commit is contained in:
Henry Jameson 2026-02-27 15:49:44 +02:00
commit 449c244d11
6 changed files with 35 additions and 32 deletions

View file

@ -39,18 +39,6 @@ export const useLocalConfigStore = defineStore('local_config', {
})
},
},
getters: {
mergedConfig: (state) => {
const instancePrefs = useInstanceStore().prefsStorage
const result = Object.fromEntries(
Object.entries(state.prefsStorage).map(([k, v]) => [
k,
state.tempStorage[k] ?? v ?? instancePrefs[k],
]),
)
return result
},
},
persist: {
afterLoad(state) {
return {