From 78e9a0c8ce7e8e78bde4e511aa0675d23aec5759 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Wed, 10 Apr 2024 11:56:25 +0200 Subject: [PATCH] give the auth modal a key and remove it before trying to open a new (it may already be opened in another state) --- src/Umbraco.Web.UI.Client/src/apps/app/app-auth.controller.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/apps/app/app-auth.controller.ts b/src/Umbraco.Web.UI.Client/src/apps/app/app-auth.controller.ts index 2e3bb77d9b..baaceaf0a0 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/app/app-auth.controller.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/app/app-auth.controller.ts @@ -134,12 +134,14 @@ export class UmbAppAuthController extends UmbControllerBase { // Show the provider selection screen const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT); + modalManager.remove('umbAuthModal'); const selected = await modalManager .open(this._host, UMB_MODAL_APP_AUTH, { data: { userLoginState, }, modal: { + key: 'umbAuthModal', backdropBackground: this.#firstTimeLoggingIn ? 'var(--umb-auth-backdrop, url("/umbraco/backoffice/assets/umbraco_logo_white.svg") 20px 20px / 200px no-repeat, radial-gradient(circle, rgba(2,0,36,1) 0%, rgba(40,58,151,.9) 50%, rgba(0,212,255,1) 100%))' : 'var(--umb-auth-backdrop-timedout, rgba(0,0,0,0.75))',