From 52453d63bd6225861069fd7974be1fcdc58bf505 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sat, 16 May 2020 20:42:50 +0300 Subject: [PATCH] Remove Http Signatures settings --- src/views/settings/components/Http.vue | 6 ------ src/views/settings/components/Inputs.vue | 2 +- src/views/settings/components/tabs.js | 2 +- src/views/settings/index.vue | 2 +- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/views/settings/components/Http.vue b/src/views/settings/components/Http.vue index c9145d24..f279a0d2 100644 --- a/src/views/settings/components/Http.vue +++ b/src/views/settings/components/Http.vue @@ -58,12 +58,6 @@ export default { httpSecurityData() { return _.get(this.settings.settings, [':pleroma', ':http_security']) || {} }, - httpSignatures() { - return this.settings.description.find(setting => setting.group === ':http_signatures') - }, - httpSignaturesData() { - return _.get(this.settings.settings, [':http_signatures']) || {} - }, isMobile() { return this.$store.state.app.device === 'mobile' }, diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 38fc9f8e..3214485f 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -215,7 +215,7 @@ export default { return Array.isArray(this.data[':icons']) ? this.data[':icons'] : [] }, inputValue() { - if ([':esshd', ':cors_plug', ':quack', ':http_signatures', ':tesla', ':swoosh'].includes(this.settingGroup.group) && + if ([':esshd', ':cors_plug', ':quack', ':tesla', ':swoosh'].includes(this.settingGroup.group) && this.data[this.setting.key]) { return this.setting.type === 'atom' && this.data[this.setting.key].value[0] === ':' ? this.data[this.setting.key].value.substr(1) diff --git a/src/views/settings/components/tabs.js b/src/views/settings/components/tabs.js index 5c170353..7190dddd 100644 --- a/src/views/settings/components/tabs.js +++ b/src/views/settings/components/tabs.js @@ -29,7 +29,7 @@ export const tabs = { }, 'http': { label: 'settings.http', - settings: [':cors_plug', ':http', ':http_security', ':http_signatures', ':web_cache_ttl'] + settings: [':cors_plug', ':http', ':http_security', ':web_cache_ttl'] }, 'instance': { label: 'settings.instance', diff --git a/src/views/settings/index.vue b/src/views/settings/index.vue index db623184..6f02a451 100644 --- a/src/views/settings/index.vue +++ b/src/views/settings/index.vue @@ -230,7 +230,7 @@ export default { }, settingsCantBeChanged(settings) { const existingSettings = settings.filter(setting => { - if ([':esshd', ':cors_plug', ':http_signatures', ':quack', ':logger', ':swoosh', ':mime'].includes(setting)) { + if ([':esshd', ':cors_plug', ':quack', ':logger', ':swoosh', ':mime'].includes(setting)) { return this.$store.state.settings.description.findIndex(el => el.group === setting) !== -1 } else if (setting === 'Pleroma.Web.Auth.Authenticator' || setting === ':admin_token') { return this.$store.state.settings.description.findIndex(el => el.children[0].key === setting) !== -1