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">
|
<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')
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue