From 74f1a3917e3b581a92db25d0f8fb2986eaf10277 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Tue, 12 May 2020 12:51:49 +0100 Subject: [PATCH] ui: Misc SSO w/Namespace amends (#7851) * ui: If an auth-method is in another namespace than default, make that clear * Pass through the namespace of the auth method rather than use the current * Make sure we refresh the application route, before redirecting This ensure that the nspaces and are refreshed in the main nav menu --- ui-v2/app/components/auth-form/index.hbs | 2 +- ui-v2/app/components/oidc-select/index.hbs | 6 ++++-- ui-v2/app/controllers/application.js | 23 +++++++++++++++------- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/ui-v2/app/components/auth-form/index.hbs b/ui-v2/app/components/auth-form/index.hbs index 2b25ccdd6e..4da0b5b12e 100644 --- a/ui-v2/app/components/auth-form/index.hbs +++ b/ui-v2/app/components/auth-form/index.hbs @@ -90,7 +90,7 @@ - Continue with {{or item.DisplayName item.Name}} + Continue with {{or item.DisplayName item.Name}}{{#if (not-eq item.Namespace 'default')}} ({{item.Namespace}}){{/if}} {{/each}} @@ -26,7 +26,9 @@ @selected={{item}} @searchEnabled={{false}} @options={{items}} as |item|> - {{or item.DisplayName item.Name}} + + {{or item.DisplayName item.Name}}{{#if (not-eq item.Namespace 'default')}} ({{item.Namespace}}){{/if}} +