From b2a7234248fdf6037d7e0b84bb961eae1a19d329 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Tue, 23 Apr 2024 14:56:03 +0200 Subject: [PATCH] cleanup modal --- .../core/auth/modals/umb-app-auth-modal.element.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/auth/modals/umb-app-auth-modal.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/auth/modals/umb-app-auth-modal.element.ts index 88d04d69d2..5338fb397e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/auth/modals/umb-app-auth-modal.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/auth/modals/umb-app-auth-modal.element.ts @@ -32,14 +32,6 @@ export class UmbAppAuthModalElement extends UmbModalBaseElement { - this.observe(context.authorizationSignal, () => {}, '_authorizationSignal'); - }); - } - render() { return html` @@ -60,7 +52,7 @@ export class UmbAppAuthModalElement extends UmbModalBaseElement { const authContext = await this.getContext(UMB_AUTH_CONTEXT); await authContext.makeAuthorizationRequest(providerName); - console.log('[AuthModal] Received authorization signal'); + const isAuthed = authContext.getIsAuthorized(); this.value = { success: isAuthed }; if (isAuthed) {