diff --git a/src/store/modules/settings.js b/src/store/modules/settings.js index 0381eca62ee3ce5b5bf2bbb21c1dd7c3034df1f9..3caa6d38d6a0b7e001f3ba5168369b694c89d5aa 100644 --- a/src/store/modules/settings.js +++ b/src/store/modules/settings.js @@ -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 }) => {