web: fix Flow executor not showing spinner when redirecting
# Conflicts: # web/src/pages/generic/FlowExecutor.ts
This commit is contained in:
		| @ -136,13 +136,13 @@ export class FlowExecutor extends LitElement implements StageHost { | |||||||
|  |  | ||||||
|     renderChallenge(): TemplateResult { |     renderChallenge(): TemplateResult { | ||||||
|         if (!this.challenge) { |         if (!this.challenge) { | ||||||
|             return html``; |             return this.renderLoading(); | ||||||
|         } |         } | ||||||
|         switch (this.challenge.type) { |         switch (this.challenge.type) { | ||||||
|             case ChallengeTypes.redirect: |             case ChallengeTypes.redirect: | ||||||
|                 console.debug(`authentik/flows: redirecting to ${(this.challenge as RedirectChallenge).to}`); |                 console.debug(`authentik/flows: redirecting to ${(this.challenge as RedirectChallenge).to}`); | ||||||
|                 window.location.assign((this.challenge as RedirectChallenge).to); |                 window.location.assign((this.challenge as RedirectChallenge).to); | ||||||
|                 break; |                 return this.renderLoading(); | ||||||
|             case ChallengeTypes.shell: |             case ChallengeTypes.shell: | ||||||
|                 return html`${unsafeHTML((this.challenge as ShellChallenge).body)}`; |                 return html`${unsafeHTML((this.challenge as ShellChallenge).body)}`; | ||||||
|             case ChallengeTypes.native: |             case ChallengeTypes.native: | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer