forked from AkkomaGang/admin-fe
Move :restrict_unauthenticated settings to Instance tab
This commit is contained in:
parent
e3d5d5b625
commit
72ceba63e6
3 changed files with 12 additions and 12 deletions
|
@ -15,10 +15,6 @@
|
||||||
<el-form :model="oauth2Data" :label-position="labelPosition" :label-width="labelWidth">
|
<el-form :model="oauth2Data" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
<setting :setting-group="oauth2" :data="oauth2Data"/>
|
<setting :setting-group="oauth2" :data="oauth2Data"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-divider v-if="oauth2" class="divider thick-line"/>
|
|
||||||
<el-form :model="restrictUnauthenticatedData" :label-position="labelPosition" :label-width="labelWidth">
|
|
||||||
<setting :setting-group="restrictUnauthenticated" :data="restrictUnauthenticatedData"/>
|
|
||||||
</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>
|
||||||
|
@ -85,12 +81,6 @@ export default {
|
||||||
},
|
},
|
||||||
pleromaAuthenticatorData() {
|
pleromaAuthenticatorData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Auth.Authenticator']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Auth.Authenticator']) || {}
|
||||||
},
|
|
||||||
restrictUnauthenticated() {
|
|
||||||
return this.settings.description.find(setting => setting.key === ':restrict_unauthenticated')
|
|
||||||
},
|
|
||||||
restrictUnauthenticatedData() {
|
|
||||||
return _.get(this.settings.settings, [':pleroma', ':restrict_unauthenticated']) || {}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
<setting :setting-group="instance" :data="instanceData"/>
|
<setting :setting-group="instance" :data="instanceData"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-divider v-if="instance" class="divider thick-line"/>
|
<el-divider v-if="instance" class="divider thick-line"/>
|
||||||
|
<el-form :model="restrictUnauthenticatedData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
|
<setting :setting-group="restrictUnauthenticated" :data="restrictUnauthenticatedData"/>
|
||||||
|
</el-form>
|
||||||
|
<el-divider v-if="restrictUnauthenticated" class="divider thick-line"/>
|
||||||
<el-form :model="adminTokenData" :label-position="labelPosition" :label-width="labelWidth">
|
<el-form :model="adminTokenData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
<setting :setting-group="adminToken" :data="adminTokenData"/>
|
<setting :setting-group="adminToken" :data="adminTokenData"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -120,6 +124,12 @@ export default {
|
||||||
pleromaUserData() {
|
pleromaUserData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.User']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.User']) || {}
|
||||||
},
|
},
|
||||||
|
restrictUnauthenticated() {
|
||||||
|
return this.settings.description.find(setting => setting.key === ':restrict_unauthenticated')
|
||||||
|
},
|
||||||
|
restrictUnauthenticatedData() {
|
||||||
|
return _.get(this.settings.settings, [':pleroma', ':restrict_unauthenticated']) || {}
|
||||||
|
},
|
||||||
scheduledActivity() {
|
scheduledActivity() {
|
||||||
return this.$store.state.settings.description.find(setting => setting.key === 'Pleroma.ScheduledActivity')
|
return this.$store.state.settings.description.find(setting => setting.key === 'Pleroma.ScheduledActivity')
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,7 +6,7 @@ export const tabs = description => {
|
||||||
},
|
},
|
||||||
'authentication': {
|
'authentication': {
|
||||||
label: 'settings.auth',
|
label: 'settings.auth',
|
||||||
settings: [':auth', ':ldap', ':oauth2', 'Pleroma.Web.Auth.Authenticator', ':restrict_unauthenticated']
|
settings: [':auth', ':ldap', ':oauth2', 'Pleroma.Web.Auth.Authenticator']
|
||||||
},
|
},
|
||||||
'esshd': {
|
'esshd': {
|
||||||
label: 'settings.esshd',
|
label: 'settings.esshd',
|
||||||
|
@ -30,7 +30,7 @@ export const tabs = description => {
|
||||||
},
|
},
|
||||||
'instance': {
|
'instance': {
|
||||||
label: 'settings.instance',
|
label: 'settings.instance',
|
||||||
settings: [':admin_token', ':instance', ':instances_favicons', ':welcome', ':manifest', 'Pleroma.User', 'Pleroma.ScheduledActivity', ':uri_schemes', ':feed', ':streamer']
|
settings: [':admin_token', ':instance', ':instances_favicons', ':welcome', ':manifest', 'Pleroma.User', 'Pleroma.ScheduledActivity', ':uri_schemes', ':feed', ':streamer', ':restrict_unauthenticated']
|
||||||
},
|
},
|
||||||
'job-queue': {
|
'job-queue': {
|
||||||
label: 'settings.jobQueue',
|
label: 'settings.jobQueue',
|
||||||
|
|
Loading…
Reference in a new issue