From acc790f590536ca1a2f51ea264b6743a6ce43a70 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 21 Feb 2021 21:42:40 +0100 Subject: [PATCH] stages/authenticator_webauthn: fix formatting of card --- .../WebAuthnAuthenticatorRegisterStage.ts | 62 +++++++++---------- 1 file changed, 28 insertions(+), 34 deletions(-) diff --git a/web/src/elements/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts b/web/src/elements/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts index cd7201b11..9bbe2c3b4 100644 --- a/web/src/elements/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts +++ b/web/src/elements/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts @@ -64,7 +64,6 @@ export class WebAuthnAuthenticatorRegisterStage extends BaseStage { } catch (err) { throw new Error(gettext(`Server validation of credential failed: ${err}`)); } - this.finishStage(); } async registerWrapper(): Promise { @@ -80,45 +79,40 @@ export class WebAuthnAuthenticatorRegisterStage extends BaseStage { }); } - finishStage(): void { - // Mark this stage as done - this.dispatchEvent( - new CustomEvent("ak-flow-submit", { - bubbles: true, - composed: true, - }) - ); - } - firstUpdated(): void { this.registerWrapper(); } render(): TemplateResult { - return html`
- ${this.registerRunning ? - html`
-
-
- + return html` + `: - html` -
-

${this.registerMessage}

- - -
`} -
`; +
`: + html` +
+

${this.registerMessage}

+ +
`} +
+
+ `; } }