feat: prevent closing tab if any modal is open

This commit is contained in:
Nybkox
2024-11-21 14:32:18 +01:00
parent 83ac45f8cf
commit e1d759041d
2 changed files with 13 additions and 1 deletions

View File

@@ -323,3 +323,9 @@ appliedCurrentSchema.subscribe(value => {
appliedCurrentSchemaValue = value;
});
export const getAppliedCurrentSchema = () => appliedCurrentSchemaValue;
let openedModalsValue = [];
openedModals.subscribe(value => {
openedModalsValue = value;
});
export const getOpenedModals = () => openedModalsValue;