Skip to content
Snippets Groups Projects

Ability to remove settings from db

@@ -5,23 +5,8 @@ import _ from 'lodash'
const settings = {
state: {
description: [],
settings: {
':auto_linker': {},
':cors_plug': {},
':esshd': {},
':http_signatures': {},
':logger': {},
':mime': {},
':phoenix': {},
':pleroma': {},
':prometheus': {},
':quack': {},
':tesla': {},
':ueberauth': {},
':web_push_encryption': {}
},
settings: {},
updatedSettings: {},
ignoredIfNotEnabled: ['enabled', 'handler', 'password_authenticator', 'port', 'priv_dir'],
loading: true
},
mutations: {
@@ -45,9 +30,9 @@ const settings = {
const parsedValue = valueHasTuples(key, value)
? { value: parseNonTuples(key, value) }
: parseTuples(value, key)
acc[group][key] = parsedValue
acc[group] = acc[group] ? { ...acc[group], [key]: parsedValue } : { [key]: parsedValue }
return acc
}, state.settings)
}, {})
state.settings = newSettings
},
UPDATE_SETTINGS: (state, { group, key, input, value, type }) => {
Loading