From 783b6e3aeacc8e7f1f38a83799abcb40a809b213 Mon Sep 17 00:00:00 2001 From: Yogi_Wang Date: Mon, 6 May 2019 19:14:00 +0800 Subject: [PATCH] Modify auth mode icon to jump to a new page only in OIDC mode for 7622: click the icon of auth mode when value is database in configuration page will go to a wrong pagee Signed-off-by: Yogi_Wang --- src/portal/src/app/config/auth/config-auth.component.html | 4 ++-- src/portal/src/app/config/auth/config-auth.component.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/portal/src/app/config/auth/config-auth.component.html b/src/portal/src/app/config/auth/config-auth.component.html index 0b08a15f2..354570e5f 100644 --- a/src/portal/src/app/config/auth/config-auth.component.html +++ b/src/portal/src/app/config/auth/config-auth.component.html @@ -12,8 +12,8 @@ - {{'CONFIG.TOOLTIP.AUTH_MODE' | translate}} diff --git a/src/portal/src/app/config/auth/config-auth.component.ts b/src/portal/src/app/config/auth/config-auth.component.ts index 9737cb26f..4dc279213 100644 --- a/src/portal/src/app/config/auth/config-auth.component.ts +++ b/src/portal/src/app/config/auth/config-auth.component.ts @@ -251,5 +251,8 @@ export class ConfigurationAuthComponent implements OnChanges, OnInit { console.error('Nothing changed'); } } + public allowGoOidc(event) { + return this.currentConfig.auth_mode && this.currentConfig.auth_mode.value === 'oidc_auth'; + } }