From 474677017febb6fba0c06d70bd735ae8c1f8f6da Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 24 Nov 2022 12:08:06 +0100 Subject: [PATCH] web/admin: fix empty request being sent due to multiple forms in duo import modal Signed-off-by: Jens Langhammer --- .../authenticator_duo/DuoDeviceImportForm.ts | 56 +++++++++---------- 1 file changed, 26 insertions(+), 30 deletions(-) diff --git a/web/src/admin/stages/authenticator_duo/DuoDeviceImportForm.ts b/web/src/admin/stages/authenticator_duo/DuoDeviceImportForm.ts index 0708231c5..8515a99e3 100644 --- a/web/src/admin/stages/authenticator_duo/DuoDeviceImportForm.ts +++ b/web/src/admin/stages/authenticator_duo/DuoDeviceImportForm.ts @@ -42,15 +42,14 @@ export class DuoDeviceImportForm extends ModelForm + ${this.instance?.adminIntegrationKey !== "" ? this.renderFormAutomatic() : html``} + ${this.renderFormManual()} + `; } renderFormManual(): TemplateResult { - return html`
- + return html`