From 2024dac39a9ecbf84b30b7a73ac5db6e38ec5420 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 21 Aug 2021 19:19:23 +0200 Subject: [PATCH] web: lock overflow when showing loading overlay on modals Signed-off-by: Jens Langhammer --- web/src/elements/buttons/ModalButton.ts | 14 +++++++++++++- web/src/elements/forms/ModalForm.ts | 3 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/web/src/elements/buttons/ModalButton.ts b/web/src/elements/buttons/ModalButton.ts index 645538bfc..a8bd42f39 100644 --- a/web/src/elements/buttons/ModalButton.ts +++ b/web/src/elements/buttons/ModalButton.ts @@ -46,6 +46,9 @@ export class ModalButton extends LitElement { @property({ type: Boolean }) open = false; + @property({ type: Boolean }) + locked = false; + handlerBound = false; static get styles(): CSSResult[] { @@ -63,6 +66,11 @@ export class ModalButton extends LitElement { PFContent, AKGlobal, MODAL_BUTTON_STYLES, + css` + .locked { + overflow-y: hidden !important; + } + `, ]; } @@ -108,7 +116,11 @@ export class ModalButton extends LitElement { renderModal(): TemplateResult { return html`
-