ux pattern cleanup.

This commit is contained in:
Bryce
2025-08-08 08:46:56 -07:00
parent 65c00e062b
commit 608cd7357c
9 changed files with 304 additions and 102 deletions

View File

@@ -16,8 +16,7 @@
</button>
<button class="btn btn-sm btn-outline btn-error fade-me-out delete-button"
hx-delete="/api/folders/{{ folder.id }}"
hx-target="#folders-list"
hx-swap="innerHTML swap:1s"
hx-swap="outerHTML settle:300ms"
hx-confirm="Are you sure you want to delete this folder?"
data-loading-disable
>
@@ -67,8 +66,7 @@
class="toggle toggle-sm toggle-success"
{% if folder.organize_enabled %}checked="checked"{% endif %}
hx-put="/api/folders/{{ folder.id }}/toggle"
hx-target="#folder-{{ folder.id }}"
hx-swap="outerHTML"
hx-swap="outerHTML settle:300ms"
hx-trigger="click"
data-loading-disable
aria-label="Toggle organize enabled">