Add MRF Activity Expitarion settings
This commit is contained in:
parent
d8299972b5
commit
54e5191d04
1 changed files with 10 additions and 0 deletions
|
@ -34,6 +34,10 @@
|
||||||
<setting :setting-group="mrfObjectAge" :data="mrfObjectAgeData"/>
|
<setting :setting-group="mrfObjectAge" :data="mrfObjectAgeData"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-divider v-if="mrfObjectAge" class="divider thick-line"/>
|
<el-divider v-if="mrfObjectAge" class="divider thick-line"/>
|
||||||
|
<el-form ref="mrfActivityExpiration" :model="mrfActivityExpirationData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
|
<setting :setting-group="mrfActivityExpiration" :data="mrfActivityExpirationData"/>
|
||||||
|
</el-form>
|
||||||
|
<el-divider v-if="mrfActivityExpiration" class="divider thick-line"/>
|
||||||
<el-form ref="modules" :model="modulesData" :label-position="labelPosition" :label-width="labelWidth">
|
<el-form ref="modules" :model="modulesData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
<setting :setting-group="modules" :data="modulesData"/>
|
<setting :setting-group="modules" :data="modulesData"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -86,6 +90,12 @@ export default {
|
||||||
modulesData() {
|
modulesData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', ':modules']) || {}
|
return _.get(this.settings.settings, [':pleroma', ':modules']) || {}
|
||||||
},
|
},
|
||||||
|
mrfActivityExpiration() {
|
||||||
|
return this.settings.description.find(setting => setting.key === ':mrf_activity_expiration')
|
||||||
|
},
|
||||||
|
mrfActivityExpirationData() {
|
||||||
|
return _.get(this.settings.settings, [':pleroma', ':mrf_activity_expiration']) || {}
|
||||||
|
},
|
||||||
mrfSimple() {
|
mrfSimple() {
|
||||||
return this.settings.description.find(setting => setting.key === ':mrf_simple')
|
return this.settings.description.find(setting => setting.key === ':mrf_simple')
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue