forked from AkkomaGang/admin-fe
Add Pleroma.Web.Preload settings on Frontend tab
This commit is contained in:
parent
b4ed2dc869
commit
aecd05fb94
1 changed files with 10 additions and 0 deletions
|
@ -27,6 +27,10 @@
|
|||
<el-form :model="markupData" :label-position="labelPosition" :label-width="labelWidth">
|
||||
<setting :setting-group="markup" :data="markupData"/>
|
||||
</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">
|
||||
<el-button class="submit-button" type="primary" @click="onSubmit">Submit</el-button>
|
||||
</div>
|
||||
|
@ -106,6 +110,12 @@ export default {
|
|||
markupData() {
|
||||
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() {
|
||||
return this.settings.description.find(setting => setting.key === ':static_fe')
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue