Remove Http Signatures settings
This commit is contained in:
parent
af929419fb
commit
52453d63bd
4 changed files with 3 additions and 9 deletions
|
@ -58,12 +58,6 @@ export default {
|
||||||
httpSecurityData() {
|
httpSecurityData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', ':http_security']) || {}
|
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() {
|
isMobile() {
|
||||||
return this.$store.state.app.device === 'mobile'
|
return this.$store.state.app.device === 'mobile'
|
||||||
},
|
},
|
||||||
|
|
|
@ -215,7 +215,7 @@ export default {
|
||||||
return Array.isArray(this.data[':icons']) ? this.data[':icons'] : []
|
return Array.isArray(this.data[':icons']) ? this.data[':icons'] : []
|
||||||
},
|
},
|
||||||
inputValue() {
|
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]) {
|
this.data[this.setting.key]) {
|
||||||
return this.setting.type === 'atom' && this.data[this.setting.key].value[0] === ':'
|
return this.setting.type === 'atom' && this.data[this.setting.key].value[0] === ':'
|
||||||
? this.data[this.setting.key].value.substr(1)
|
? this.data[this.setting.key].value.substr(1)
|
||||||
|
|
|
@ -29,7 +29,7 @@ export const tabs = {
|
||||||
},
|
},
|
||||||
'http': {
|
'http': {
|
||||||
label: 'settings.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': {
|
'instance': {
|
||||||
label: 'settings.instance',
|
label: 'settings.instance',
|
||||||
|
|
|
@ -230,7 +230,7 @@ export default {
|
||||||
},
|
},
|
||||||
settingsCantBeChanged(settings) {
|
settingsCantBeChanged(settings) {
|
||||||
const existingSettings = settings.filter(setting => {
|
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
|
return this.$store.state.settings.description.findIndex(el => el.group === setting) !== -1
|
||||||
} else if (setting === 'Pleroma.Web.Auth.Authenticator' || setting === ':admin_token') {
|
} else if (setting === 'Pleroma.Web.Auth.Authenticator' || setting === ':admin_token') {
|
||||||
return this.$store.state.settings.description.findIndex(el => el.children[0].key === setting) !== -1
|
return this.$store.state.settings.description.findIndex(el => el.children[0].key === setting) !== -1
|
||||||
|
|
Loading…
Reference in a new issue