web: fix Flow executor not showing spinner when redirecting

# Conflicts:
#	web/src/pages/generic/FlowExecutor.ts
This commit is contained in:
Jens Langhammer 2021-03-08 10:23:43 +01:00
parent 3f0e4bb654
commit 1c6d498621
1 changed files with 2 additions and 2 deletions

View File

@ -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: