mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 20:46:14 -04:00
Build 29062687
This commit is contained in:
parent
f76c96019c
commit
85ece0b975
21 changed files with 74 additions and 68 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue