From 6e6755d805b86fd3a825883243a0a154533f67be Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 8 Mar 2021 10:23:43 +0100 Subject: [PATCH] web: fix Flow executor not showing spinner when redirecting # Conflicts: # web/src/pages/generic/FlowExecutor.ts --- web/src/pages/generic/FlowExecutor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/pages/generic/FlowExecutor.ts b/web/src/pages/generic/FlowExecutor.ts index 552df1b32..c2de4caa4 100644 --- a/web/src/pages/generic/FlowExecutor.ts +++ b/web/src/pages/generic/FlowExecutor.ts @@ -136,13 +136,13 @@ export class FlowExecutor extends LitElement implements StageHost { renderChallenge(): TemplateResult { if (!this.challenge) { - return html``; + return this.renderLoading(); } switch (this.challenge.type) { case ChallengeTypes.redirect: console.debug(`authentik/flows: redirecting to ${(this.challenge as RedirectChallenge).to}`); window.location.assign((this.challenge as RedirectChallenge).to); - break; + return this.renderLoading(); case ChallengeTypes.shell: return html`${unsafeHTML((this.challenge as ShellChallenge).body)}`; case ChallengeTypes.native: