From ddf09a4cf5313587f98a058402a89f0bbe0c6355 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 22 Mar 2021 20:49:11 +0100 Subject: [PATCH] web: fix styling during initial challenge load Signed-off-by: Jens Langhammer --- web/src/flows/FlowExecutor.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/src/flows/FlowExecutor.ts b/web/src/flows/FlowExecutor.ts index 2eaf5c828..11b28b5d2 100644 --- a/web/src/flows/FlowExecutor.ts +++ b/web/src/flows/FlowExecutor.ts @@ -32,7 +32,6 @@ import { AuthenticatorStaticChallenge } from "./stages/authenticator_static/Auth import { AuthenticatorValidateStageChallenge } from "./stages/authenticator_validate/AuthenticatorValidateStage"; import { WebAuthnAuthenticatorRegisterChallenge } from "./stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage"; import { CaptchaChallenge } from "./stages/captcha/CaptchaStage"; -import { SpinnerSize } from "../elements/Spinner"; import { StageHost } from "./stages/base"; import { Challenge, ChallengeTypeEnum, Config, FlowsApi, RootApi } from "authentik-api"; import { DEFAULT_CONFIG } from "../api/Config"; @@ -157,14 +156,15 @@ export class FlowExecutor extends LitElement implements StageHost { } renderLoading(): TemplateResult { - return html`
- -
`; + return html` + `; } renderChallenge(): TemplateResult { if (!this.challenge) { - return this.renderLoading(); + return html``; } switch (this.challenge.type) { case ChallengeTypeEnum.Redirect: