mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
better loading states, BUGFIX: person edit link
This commit is contained in:
@@ -341,7 +341,7 @@ function InitGlobalHtmxNotice() {
|
||||
noticeEl.innerHTML = `
|
||||
<div class="global-notice-inner">
|
||||
<i class="ri-loader-4-line spinning" aria-hidden="true"></i>
|
||||
<span data-role="global-notice-text">Laden…</span>
|
||||
<span data-role="global-notice-text">Lädt</span>
|
||||
</div>
|
||||
`;
|
||||
document.body?.appendChild(noticeEl);
|
||||
@@ -437,7 +437,7 @@ function InitGlobalHtmxNotice() {
|
||||
pending += 1;
|
||||
clearErrorTimeout();
|
||||
setBodyBusy(true);
|
||||
showNotice("loading", "Laden...");
|
||||
showNotice("loading", "Lädt");
|
||||
markElementBusy(event.detail?.elt, true);
|
||||
});
|
||||
|
||||
@@ -460,7 +460,7 @@ function InitGlobalHtmxNotice() {
|
||||
if (pending === 0) {
|
||||
hideNotice();
|
||||
} else {
|
||||
showNotice("loading", "Laden...");
|
||||
showNotice("loading", "Lädt");
|
||||
}
|
||||
}, 2000);
|
||||
});
|
||||
@@ -473,7 +473,7 @@ function InitGlobalHtmxNotice() {
|
||||
if (pending === 0) {
|
||||
hideNotice();
|
||||
} else {
|
||||
showNotice("loading", "Laden...");
|
||||
showNotice("loading", "Lädt");
|
||||
}
|
||||
}, 2000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user