mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 20:16:16 -04:00
Build 29058459
This commit is contained in:
parent
b19cc5c0b4
commit
de99dd9ba8
17 changed files with 160 additions and 147 deletions
|
@ -105,7 +105,8 @@ export async function asyncAlert<t>({
|
|||
help,
|
||||
disabled,
|
||||
className = "",
|
||||
icon = "",tooltip,
|
||||
icon = "",
|
||||
tooltip,
|
||||
} = entry;
|
||||
|
||||
const button = document.createElement("button");
|
||||
|
@ -117,8 +118,8 @@ ${icon}
|
|||
<em>${help || ""}</em>
|
||||
</div>`;
|
||||
|
||||
if(tooltip){
|
||||
button.setAttribute('data-tooltip',tooltip)
|
||||
if (tooltip) {
|
||||
button.setAttribute("data-tooltip", tooltip);
|
||||
}
|
||||
if (disabled) {
|
||||
button.setAttribute("disabled", "disabled");
|
||||
|
@ -165,4 +166,3 @@ function updateAlertsOpen(delta: number) {
|
|||
}
|
||||
document.body.classList[alertsOpen ? "add" : "remove"]("has-alert-open");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue