From de0e824b3003105dc7859b49520b32f260926f9b Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 8 Feb 2023 19:52:30 +0800 Subject: [PATCH] perf: auth backends --- src/views/settings/Auth/index.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/views/settings/Auth/index.vue b/src/views/settings/Auth/index.vue index 20c521940..d039743de 100644 --- a/src/views/settings/Auth/index.vue +++ b/src/views/settings/Auth/index.vue @@ -38,19 +38,16 @@ export default { OAuth2 }, data() { - const hasLicense = this.$store.getters.hasValidLicense let extraBackends = [] - if (!this.$store.getters.hasValidLicense) { + if (this.$store.getters.hasValidLicense) { extraBackends = [ { title: this.$t('setting.OIDC'), - name: 'OIDC', - hidden: () => !hasLicense + name: 'OIDC' }, { title: this.$t('setting.SAML2'), - name: 'SAML2', - hidden: () => !hasLicense + name: 'SAML2' }, { title: this.$t('setting.OAuth2'), @@ -92,8 +89,7 @@ export default { }, { title: this.$t('setting.CAS'), - name: 'CAS', - hidden: () => !hasLicense + name: 'CAS' }, ...extraBackends ]