fix(journals): add type='button' to prevent form submission and migrate to V3 Action API for file downloads

This commit is contained in:
Scott Idem
2026-02-03 22:14:22 -05:00
parent 6abe4c897e
commit 281972cb5d
24 changed files with 104 additions and 132 deletions

View File

@@ -172,8 +172,7 @@ async function handle_save() {
</div>
<div class="modal-action flex justify-end gap-2 mt-4">
<button
type="button"
<button type="button"
disabled={!has_changes}
onclick={handle_save}
class="btn btn-sm md:btn-md lg:btn-lg min-w-32 hover:variant-outline-success hover:preset-filled-success-500"
@@ -183,8 +182,7 @@ async function handle_save() {
<Check class="mr-1" />
Update
</button>
<button
type="button"
<button type="button"
onclick={on_close}
class="btn preset-tonal-surface border border-surface-500 hover:preset-filled-surface-500 transition"
>