diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 72877479..58ca5a5f 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -62,7 +62,7 @@ @input="updateSetting($event, settingGroup.key, setting.key)"/> @@ -225,9 +225,13 @@ export default { } }, inputValue() { - return ([':esshd', ':cors_plug'].includes(this.settingGroup.group) && this.data[this.setting.key]) - ? this.data[this.setting.key].value - : this.data[this.setting.key] + if ([':esshd', ':cors_plug', ':quack'].includes(this.settingGroup.group) && this.data[this.setting.key]) { + return this.data[this.setting.key].value + } else if (this.settingGroup.group === ':logger' && this.setting.key === ':backends') { + return this.data.value + } else { + return this.data[this.setting.key] + } }, labelWidth() { return this.isMobile ? '100px' : '240px' diff --git a/src/views/settings/components/JobQueue.vue b/src/views/settings/components/JobQueue.vue index 6b305152..19a2a756 100644 --- a/src/views/settings/components/JobQueue.vue +++ b/src/views/settings/components/JobQueue.vue @@ -37,19 +37,16 @@ export default { return this.settings.description.find(setting => setting.key === 'Oban') }, obanQueuesData() { - return this.settings.settings['Oban'] + return this.settings.settings.pleroma['Oban'] }, workers() { return this.settings.description.find(setting => setting.key === ':workers') }, workersData() { - return this.settings.settings[':workers'] + return this.settings.settings.pleroma[':workers'] } }, methods: { - updateSetting(value, tab, input) { - this.$store.dispatch('UpdateSettings', { tab, data: { [input]: value }}) - }, async onSubmit() { try { await this.$store.dispatch('SubmitChanges') diff --git a/src/views/settings/components/Logger.vue b/src/views/settings/components/Logger.vue index 29e49a0d..184103cd 100644 --- a/src/views/settings/components/Logger.vue +++ b/src/views/settings/components/Logger.vue @@ -38,17 +38,14 @@ export default { return this.settings.description.find(setting => setting.key === ':console') }, consoleData() { - return this.settings.settings[':logger'][':console'] + return this.settings.settings.logger[':console'] }, exsyslogger() { return this.settings.description.find(setting => setting.key === ':ex_syslogger') }, exsysloggerData() { - return this.settings.settings[':logger'][':ex_syslogger'] + return this.settings.settings.logger[':ex_syslogger'] }, - // loggerBackendsValue() { - // return this.loggerBackends.value ? this.loggerBackends.value.map(el => JSON.stringify(el)) : [] - // }, isMobile() { return this.$store.state.app.device === 'mobile' }, @@ -62,20 +59,16 @@ export default { return this.settings.description.find(setting => setting.group === ':logger') }, loggerData() { - return this.settings.settings[':logger'] + return this.settings.settings.logger[':backends'] }, quack() { return this.settings.description.find(setting => setting.group === ':quack') }, quackData() { - return this.settings.settings[':quack'] + return this.settings.settings.quack } }, methods: { - // updateloggerBackends(value, tab, input) { - // const parseValue = value.map(el => JSON.parse(el)) - // this.$store.dispatch('UpdateSettings', { tab, data: { [input]: parseValue }}) - // }, async onSubmit() { try { await this.$store.dispatch('SubmitChanges')