web: lock overflow when showing loading overlay on modals

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-08-21 19:19:23 +02:00
parent 33d5cd2973
commit 2024dac39a
2 changed files with 16 additions and 1 deletions

View File

@ -30,6 +30,7 @@ export class ModalForm extends ModalButton {
form?.resetForm();
}
this.loading = false;
this.locked = false;
this.dispatchEvent(
new CustomEvent(EVENT_REFRESH, {
bubbles: true,
@ -39,6 +40,7 @@ export class ModalForm extends ModalButton {
})
.catch((exc) => {
this.loading = false;
this.locked = false;
throw exc;
});
}
@ -59,6 +61,7 @@ export class ModalForm extends ModalButton {
<ak-spinner-button
.callAction=${() => {
this.loading = true;
this.locked = true;
return this.confirm();
}}
class="pf-m-primary"