mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 02:25:30 +00:00
better loading states, BUGFIX: person edit link
This commit is contained in:
@@ -150,7 +150,7 @@ export class FabMenu extends HTMLElement {
|
||||
<div class="px-3 py-1.5 text-xs font-semibold text-gray-500 uppercase tracking-wider">
|
||||
Person
|
||||
</div>
|
||||
<a href="/person/${personId}/edit" class="flex items-center px-4 py-2 hover:bg-gray-100 transition-colors no-underline text-sm">
|
||||
<a href="/person/${personId}/edit/" class="flex items-center px-4 py-2 hover:bg-gray-100 transition-colors no-underline text-sm">
|
||||
<i class="ri-edit-line text-base text-gray-700 mr-2.5"></i>
|
||||
<span class="text-gray-900">Bearbeiten</span>
|
||||
</a>
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -641,14 +641,16 @@
|
||||
@apply block;
|
||||
}
|
||||
|
||||
/* Overlay disabled for now.
|
||||
html[data-htmx-busy="true"]::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(15, 23, 42, 0.18);
|
||||
background: rgba(15, 23, 42, 0.08);
|
||||
z-index: 40;
|
||||
pointer-events: auto;
|
||||
}
|
||||
*/
|
||||
|
||||
[data-htmx-busy="true"]:not(html):not(body) {
|
||||
pointer-events: none;
|
||||
|
||||
Reference in New Issue
Block a user