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">
|
||||
<setting :setting-group="activityExpiration" :data="activityExpirationData"/>
|
||||
</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">
|
||||
<el-button class="submit-button" type="primary" @click="onSubmit">Submit</el-button>
|
||||
</div>
|
||||
|
@ -36,6 +48,18 @@ export default {
|
|||
activityExpirationData() {
|
||||
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() {
|
||||
return this.$store.state.app.device === 'mobile'
|
||||
},
|
||||
|
@ -66,6 +90,12 @@ export default {
|
|||
obanQueuesData() {
|
||||
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() {
|
||||
return this.settings.description.find(setting => setting.key === ':workers')
|
||||
},
|
||||
|
|
|
@ -34,7 +34,7 @@ export const tabs = description => {
|
|||
},
|
||||
'job-queue': {
|
||||
label: 'settings.jobQueue',
|
||||
settings: ['Pleroma.ActivityExpiration', 'Oban', ':workers']
|
||||
settings: ['Pleroma.ActivityExpiration', ':connections_pool', ':hackney_pools', 'Oban', ':pools', ':workers']
|
||||
},
|
||||
'link-formatter': {
|
||||
label: 'settings.linkFormatter',
|
||||
|
|
Loading…
Reference in a new issue