Add Pleroma.Web.Preload settings on Frontend tab

This commit is contained in:
Angelina Filippova 2020-08-24 22:50:01 +03:00
parent b4ed2dc869
commit aecd05fb94

View file

@ -27,6 +27,10 @@
<el-form :model="markupData" :label-position="labelPosition" :label-width="labelWidth"> <el-form :model="markupData" :label-position="labelPosition" :label-width="labelWidth">
<setting :setting-group="markup" :data="markupData"/> <setting :setting-group="markup" :data="markupData"/>
</el-form> </el-form>
<el-divider v-if="preload" class="divider thick-line"/>
<el-form :model="preloadData" :label-position="labelPosition" :label-width="labelWidth">
<setting :setting-group="preload" :data="preloadData"/>
</el-form>
<div class="submit-button-container"> <div class="submit-button-container">
<el-button class="submit-button" type="primary" @click="onSubmit">Submit</el-button> <el-button class="submit-button" type="primary" @click="onSubmit">Submit</el-button>
</div> </div>
@ -106,6 +110,12 @@ export default {
markupData() { markupData() {
return _.get(this.settings.settings, [':pleroma', ':markup']) || {} return _.get(this.settings.settings, [':pleroma', ':markup']) || {}
}, },
preload() {
return this.settings.description.find(setting => setting.key === 'Pleroma.Web.Preload')
},
preloadData() {
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Preload']) || {}
},
staticFe() { staticFe() {
return this.settings.description.find(setting => setting.key === ':static_fe') return this.settings.description.find(setting => setting.key === ':static_fe')
}, },