Added docs to popup list and popup id counter.

This commit is contained in:
Mizah 2024-11-17 14:23:31 +02:00
parent 2e51e779e7
commit 8457fa9b3b

View file

@ -136,7 +136,16 @@ export function promiseDialog<T extends Promise<any>>(
return promise; return promise;
} }
/**
* Counter for generating unique popup IDs.
* @type {number}
*/
let popupIdCount = 0; let popupIdCount = 0;
/**
* A reactive list of the currently opened popups. This is used in a Vue component
* in a v-for loop to render the popups.
*/
export const popups = ref<{ export const popups = ref<{
id: number; id: number;
component: Component; component: Component;