mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-15 18:54:47 -04:00
wip
This commit is contained in:
parent
46228a2128
commit
9624c5b351
16 changed files with 518 additions and 52 deletions
|
@ -43,7 +43,7 @@ export async function asyncAlert<t>({
|
|||
content: (string | AsyncAlertAction<t>)[];
|
||||
allowClose?: boolean;
|
||||
className?: string;
|
||||
}): Promise<t | void> {
|
||||
}): Promise<t | void|string> {
|
||||
updateAlertsOpen(+1);
|
||||
return new Promise((resolve) => {
|
||||
popupWrap.className = className;
|
||||
|
@ -139,6 +139,11 @@ ${icon}
|
|||
addto.appendChild(button);
|
||||
});
|
||||
|
||||
popup.addEventListener('click', e=>{
|
||||
if(e.target.getAttribute('data-resolve-to')){
|
||||
closeWithResult(e.target.getAttribute('data-resolve-to'))
|
||||
}
|
||||
},true)
|
||||
popupWrap.appendChild(popup);
|
||||
(
|
||||
popupWrap.querySelector(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue