From b237f2ddfb66c854deec0b228f0e9b198b2f65ba Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 11 Aug 2021 17:44:09 +0200 Subject: [PATCH] web/elements: fix loading overlay not being removed on error Signed-off-by: Jens Langhammer --- web/src/elements/forms/ModalForm.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/elements/forms/ModalForm.ts b/web/src/elements/forms/ModalForm.ts index 00e653d34..21088e06e 100644 --- a/web/src/elements/forms/ModalForm.ts +++ b/web/src/elements/forms/ModalForm.ts @@ -35,6 +35,9 @@ export class ModalForm extends ModalButton { composed: true, }), ); + }).catch((exc) => { + this.loading = false; + throw exc; }); }