Compare commits
No commits in common. "ea69bf5fd9818b38e16a4422138a4283ccb1cbb1" and "a2eb4fd202a70923bdaa84d076cc43f5c6cc772b" have entirely different histories.
ea69bf5fd9
...
a2eb4fd202
3 changed files with 2 additions and 17 deletions
|
|
@ -322,9 +322,8 @@ export default {
|
|||
switch (this.realSource) {
|
||||
case 'profile':
|
||||
return {}
|
||||
default: {
|
||||
return get(useSyncConfigStore().mergedConfigDefault, this.path)
|
||||
}
|
||||
default:
|
||||
return get(useInstanceStore().prefsStorage, this.path)
|
||||
}
|
||||
},
|
||||
isProfileSetting() {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import { defineStore } from 'pinia'
|
|||
import { instanceDefaultProperties } from '../modules/config.js'
|
||||
import {
|
||||
instanceDefaultConfig,
|
||||
defaultConfigLocal,
|
||||
staticOrApiConfigDefault,
|
||||
} from '../modules/default_config_state.js'
|
||||
import apiService from '../services/api/api.service.js'
|
||||
|
|
@ -56,7 +55,6 @@ const defaultState = {
|
|||
// Instance admins can override default settings for the whole instance
|
||||
prefsStorage: {
|
||||
...instanceDefaultConfig,
|
||||
...defaultConfigLocal,
|
||||
},
|
||||
|
||||
// Known domains list for user's domain-muting
|
||||
|
|
|
|||
|
|
@ -758,18 +758,6 @@ export const useSyncConfigStore = defineStore('sync_config', {
|
|||
)
|
||||
return result
|
||||
},
|
||||
mergedConfigDefault: (state) => {
|
||||
const instancePrefs = useInstanceStore().prefsStorage
|
||||
const result = Object.fromEntries(
|
||||
Object.entries(state.prefsStorage.simple).map(([k, value]) => [
|
||||
k,
|
||||
LOCAL_ONLY_KEYS.has(k)
|
||||
? (instancePrefs[k] ?? defaultConfigLocal[k])
|
||||
: (instancePrefs[k] ?? instanceDefaultConfig[k]),
|
||||
]),
|
||||
)
|
||||
return result
|
||||
},
|
||||
mergedConfigWithoutDefaults: (state) => {
|
||||
const localPrefs = useLocalConfigStore().prefsStorage
|
||||
const result = Object.fromEntries(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue