minimize exported settings
This commit is contained in:
parent
ffeda63676
commit
2c6df0887f
2 changed files with 5 additions and 3 deletions
|
|
@ -50,16 +50,15 @@ export const useMergedConfigStore = defineStore('merged_config', {
|
|||
return result
|
||||
},
|
||||
mergedConfigWithoutDefaults: () => {
|
||||
const instancePrefs = useInstanceStore().prefsStorage
|
||||
const tempPrefs = useLocalConfigStore().tempStorage
|
||||
const localPrefs = useLocalConfigStore().prefsStorage
|
||||
const syncPrefs = useSyncConfigStore().prefsStorage
|
||||
|
||||
const getValue = (k) =>
|
||||
tempPrefs[k] ?? localPrefs[k] ?? syncPrefs.simple[k] ?? instancePrefs[k]
|
||||
tempPrefs[k] ?? localPrefs[k] ?? syncPrefs.simple[k]
|
||||
|
||||
const result = Object.fromEntries(
|
||||
Object.keys(ROOT_CONFIG).map(([k, value]) => [k, getValue(k)]),
|
||||
Object.keys(ROOT_CONFIG).map((k) => [k, getValue(k)]),
|
||||
)
|
||||
return result
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue