This commit is contained in:
Angelina Filippova 2020-02-01 16:08:10 +03:00
parent c5be615923
commit 16c4296274

View file

@ -2,64 +2,64 @@
<div class="settings-container"> <div class="settings-container">
<h1>{{ $t('settings.settings') }}</h1> <h1>{{ $t('settings.settings') }}</h1>
<el-tabs v-model="activeTab" :tab-position="tabPosition"> <el-tabs v-model="activeTab" :tab-position="tabPosition">
<el-tab-pane :label="$t('settings.activityPub')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.activityPub')" :disabled="configDisabled" lazy>
<activity-pub/> <activity-pub/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.auth')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.auth')" :disabled="configDisabled" lazy>
<authentication/> <authentication/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.autoLinker')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.autoLinker')" :disabled="configDisabled" lazy>
<auto-linker/> <auto-linker/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.esshd')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.esshd')" :disabled="configDisabled" lazy>
<esshd/> <esshd/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.captcha')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.captcha')" :disabled="configDisabled" lazy>
<captcha/> <captcha/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.frontend')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.frontend')" :disabled="configDisabled" lazy>
<frontend/> <frontend/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.gopher')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.gopher')" :disabled="configDisabled" lazy>
<gopher/> <gopher/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.http')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.http')" :disabled="configDisabled" lazy>
<http/> <http/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.instance')" :disabled="confidDisabled" name="instance"> <el-tab-pane :label="$t('settings.instance')" :disabled="configDisabled" name="instance">
<instance/> <instance/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.jobQueue')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.jobQueue')" :disabled="configDisabled" lazy>
<job-queue/> <job-queue/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.logger')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.logger')" :disabled="configDisabled" lazy>
<logger/> <logger/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.mailer')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.mailer')" :disabled="configDisabled" lazy>
<mailer/> <mailer/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.mediaProxy')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.mediaProxy')" :disabled="configDisabled" lazy>
<media-proxy/> <media-proxy/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.metadata')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.metadata')" :disabled="configDisabled" lazy>
<metadata/> <metadata/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.mrf')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.mrf')" :disabled="configDisabled" lazy>
<mrf/> <mrf/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.rateLimiters')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.rateLimiters')" :disabled="configDisabled" lazy>
<rate-limiters/> <rate-limiters/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.relays')" lazy name="relays"> <el-tab-pane :label="$t('settings.relays')" lazy name="relays">
<relays/> <relays/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.webPush')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.webPush')" :disabled="configDisabled" lazy>
<web-push/> <web-push/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.upload')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.upload')" :disabled="configDisabled" lazy>
<upload/> <upload/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('settings.other')" :disabled="confidDisabled" lazy> <el-tab-pane :label="$t('settings.other')" :disabled="configDisabled" lazy>
<other/> <other/>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -122,7 +122,7 @@ export default {
this.$store.dispatch('SetActiveTab', tab) this.$store.dispatch('SetActiveTab', tab)
} }
}, },
confidDisabled() { configDisabled() {
return this.$store.state.settings.configDisabled return this.$store.state.settings.configDisabled
}, },
isMobile() { isMobile() {