Build 29062687

This commit is contained in:
Renan LE CARO 2025-04-04 12:07:51 +02:00
parent f76c96019c
commit 85ece0b975
21 changed files with 74 additions and 68 deletions

View file

@ -28,7 +28,7 @@ let lastClickedItemIndex = -1;
export function requiredAsyncAlert<t>(p: {
title?: string;
content: (string | AsyncAlertAction<t>)[];
className?:string;
className?: string;
}): Promise<t> {
return asyncAlert({ ...p, allowClose: false });
}
@ -37,16 +37,16 @@ export async function asyncAlert<t>({
title,
content = [],
allowClose = true,
className = '',
className = "",
}: {
title?: string;
content: (string | AsyncAlertAction<t>)[];
allowClose?: boolean;
className?:string;
className?: string;
}): Promise<t | void> {
updateAlertsOpen(+1);
return new Promise((resolve) => {
popupWrap.className = className ;
popupWrap.className = className;
closeModaleButton.style.display = allowClose ? "" : "none";
const popup = document.createElement("div");