From effa7d2da8c32c18922cfd7bfadda4ab2c246f05 Mon Sep 17 00:00:00 2001 From: O3H Date: Mon, 7 Oct 2024 00:32:24 +0100 Subject: [PATCH] Update dialog.ts --- frontend/src/composables/dialog.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/composables/dialog.ts b/frontend/src/composables/dialog.ts index ff51207..26519f7 100644 --- a/frontend/src/composables/dialog.ts +++ b/frontend/src/composables/dialog.ts @@ -14,6 +14,7 @@ export interface DialogState { const dialogs: Record = {} +export const openDialogCount = () => Object.keys(dialogs).reduce((amt, key) => amt + (dialogs[key].visible.value ? 1 : 0), 0) export const useDialog = (id: string): Dialog => { // Initialize the dialog state if it doesn't exist if (!dialogs[id]) {