Add :modules and Pleroma.Web.ApiSpec.CastAndValidate settings
This commit is contained in:
parent
11da7c9c7f
commit
7f7a1813c9
3 changed files with 21 additions and 4 deletions
|
@ -49,9 +49,6 @@ export default {
|
|||
loading() {
|
||||
return this.settings.loading
|
||||
},
|
||||
modules() {
|
||||
return this.settings.description.find(setting => setting.key === ':modules')
|
||||
},
|
||||
mrfSettings() {
|
||||
return this.settings.description.filter(el => el.tab === 'mrf')
|
||||
}
|
||||
|
|
|
@ -7,6 +7,14 @@
|
|||
<el-form :model="remoteIpData" :label-position="labelPosition" :label-width="labelWidth">
|
||||
<setting :setting-group="remoteIp" :data="remoteIpData"/>
|
||||
</el-form>
|
||||
<el-divider v-if="remoteIpData" class="divider thick-line"/>
|
||||
<el-form :model="modulesData" :label-position="labelPosition" :label-width="labelWidth">
|
||||
<setting :setting-group="modules" :data="modulesData"/>
|
||||
</el-form>
|
||||
<el-divider v-if="castAndValidate" class="divider thick-line"/>
|
||||
<el-form :model="castAndValidateData" :label-position="labelPosition" :label-width="labelWidth">
|
||||
<setting :setting-group="castAndValidate" :data="castAndValidateData"/>
|
||||
</el-form>
|
||||
<div class="submit-button-container">
|
||||
<el-button class="submit-button" type="primary" @click="onSubmit">Submit</el-button>
|
||||
</div>
|
||||
|
@ -26,6 +34,12 @@ export default {
|
|||
...mapGetters([
|
||||
'settings'
|
||||
]),
|
||||
castAndValidate() {
|
||||
return this.settings.description.find(setting => setting.key === 'Pleroma.Web.ApiSpec.CastAndValidate')
|
||||
},
|
||||
castAndValidateData() {
|
||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.ApiSpec.CastAndValidate']) || {}
|
||||
},
|
||||
isMobile() {
|
||||
return this.$store.state.app.device === 'mobile'
|
||||
},
|
||||
|
@ -56,6 +70,12 @@ export default {
|
|||
mimeTypesData() {
|
||||
return _.get(this.settings.settings, [':mime']) || {}
|
||||
},
|
||||
modules() {
|
||||
return this.settings.description.find(setting => setting.key === ':modules')
|
||||
},
|
||||
modulesData() {
|
||||
return _.get(this.settings.settings, [':pleroma', ':modules']) || {}
|
||||
},
|
||||
remoteIp() {
|
||||
return this.settings.description.find(setting => setting.key === 'Pleroma.Plugs.RemoteIp')
|
||||
},
|
||||
|
|
|
@ -78,7 +78,7 @@ export const tabs = description => {
|
|||
},
|
||||
'other': {
|
||||
label: 'settings.other',
|
||||
settings: [':mime', 'Pleroma.Plugs.RemoteIp']
|
||||
settings: [':mime', 'Pleroma.Plugs.RemoteIp', ':modules', 'Pleroma.Web.ApiSpec.CastAndValidate']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue