Skip to content

Commit

Permalink
Update dialog.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Oct 6, 2024
1 parent 202ea61 commit effa7d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/composables/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface DialogState {

const dialogs: Record<string, DialogState> = {}

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]) {
Expand Down

0 comments on commit effa7d2

Please sign in to comment.