forked from AkkomaGang/admin-fe
Add Pools, Connections pools and Hackney pools settings on Job Queue tab
This commit is contained in:
parent
7f7a1813c9
commit
198ac3e035
2 changed files with 31 additions and 1 deletions
|
@ -11,6 +11,18 @@
|
||||||
<el-form :model="activityExpirationData" :label-position="labelPosition" :label-width="labelWidth">
|
<el-form :model="activityExpirationData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
<setting :setting-group="activityExpiration" :data="activityExpirationData"/>
|
<setting :setting-group="activityExpiration" :data="activityExpirationData"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
<el-divider v-if="activityExpiration" class="divider thick-line"/>
|
||||||
|
<el-form :model="connectionsPoolsData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
|
<setting :setting-group="connectionsPools" :data="connectionsPoolsData"/>
|
||||||
|
</el-form>
|
||||||
|
<el-divider v-if="connectionsPools" class="divider thick-line"/>
|
||||||
|
<el-form :model="poolsData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
|
<setting :setting-group="pools" :data="poolsData"/>
|
||||||
|
</el-form>
|
||||||
|
<el-divider v-if="pools" class="divider thick-line"/>
|
||||||
|
<el-form :model="hackneyPoolsData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
|
<setting :setting-group="hackneyPools" :data="hackneyPoolsData"/>
|
||||||
|
</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>
|
||||||
|
@ -36,6 +48,18 @@ export default {
|
||||||
activityExpirationData() {
|
activityExpirationData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.ActivityExpiration']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.ActivityExpiration']) || {}
|
||||||
},
|
},
|
||||||
|
connectionsPools() {
|
||||||
|
return this.settings.description.find(setting => setting.key === ':connections_pool')
|
||||||
|
},
|
||||||
|
connectionsPoolsData() {
|
||||||
|
return _.get(this.settings.settings, [':pleroma', ':connections_pool']) || {}
|
||||||
|
},
|
||||||
|
hackneyPools() {
|
||||||
|
return this.settings.description.find(setting => setting.key === ':hackney_pools')
|
||||||
|
},
|
||||||
|
hackneyPoolsData() {
|
||||||
|
return _.get(this.settings.settings, [':pleroma', ':hackney_pools']) || {}
|
||||||
|
},
|
||||||
isMobile() {
|
isMobile() {
|
||||||
return this.$store.state.app.device === 'mobile'
|
return this.$store.state.app.device === 'mobile'
|
||||||
},
|
},
|
||||||
|
@ -66,6 +90,12 @@ export default {
|
||||||
obanQueuesData() {
|
obanQueuesData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Oban']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Oban']) || {}
|
||||||
},
|
},
|
||||||
|
pools() {
|
||||||
|
return this.settings.description.find(setting => setting.key === ':pools')
|
||||||
|
},
|
||||||
|
poolsData() {
|
||||||
|
return _.get(this.settings.settings, [':pleroma', ':pools']) || {}
|
||||||
|
},
|
||||||
workers() {
|
workers() {
|
||||||
return this.settings.description.find(setting => setting.key === ':workers')
|
return this.settings.description.find(setting => setting.key === ':workers')
|
||||||
},
|
},
|
||||||
|
|
|
@ -34,7 +34,7 @@ export const tabs = description => {
|
||||||
},
|
},
|
||||||
'job-queue': {
|
'job-queue': {
|
||||||
label: 'settings.jobQueue',
|
label: 'settings.jobQueue',
|
||||||
settings: ['Pleroma.ActivityExpiration', 'Oban', ':workers']
|
settings: ['Pleroma.ActivityExpiration', ':connections_pool', ':hackney_pools', 'Oban', ':pools', ':workers']
|
||||||
},
|
},
|
||||||
'link-formatter': {
|
'link-formatter': {
|
||||||
label: 'settings.linkFormatter',
|
label: 'settings.linkFormatter',
|
||||||
|
|
Loading…
Reference in a new issue