Help update

This commit is contained in:
Renan LE CARO 2025-04-01 13:35:33 +02:00
parent d31f8ef0b4
commit b19cc5c0b4
23 changed files with 863 additions and 446 deletions

View file

@ -105,7 +105,7 @@ export async function asyncAlert<t>({
help,
disabled,
className = "",
icon = "",
icon = "",tooltip,
} = entry;
const button = document.createElement("button");
@ -117,6 +117,9 @@ ${icon}
<em>${help || ""}</em>
</div>`;
if(tooltip){
button.setAttribute('data-tooltip',tooltip)
}
if (disabled) {
button.setAttribute("disabled", "disabled");
} else {
@ -162,3 +165,4 @@ function updateAlertsOpen(delta: number) {
}
document.body.classList[alertsOpen ? "add" : "remove"]("has-alert-open");
}