Build 29058459

This commit is contained in:
Renan LE CARO 2025-04-01 13:39:09 +02:00
parent b19cc5c0b4
commit de99dd9ba8
17 changed files with 160 additions and 147 deletions

View file

@ -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");
}