web/elements: fix loading overlay not being removed on error

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-11 17:44:09 +02:00
parent 784a3efaa5
commit b237f2ddfb
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ export class ModalForm extends ModalButton {
composed: true,
}),
);
}).catch((exc) => {
this.loading = false;
throw exc;
});
}