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

@@ -99,8 +99,7 @@
"
>
<!-- If middle click then open the all journals page in a new tab. Otherwise show/hide the menu. -->
<button
type="button"
<button type="button"
onmousedown={(event) => {
if (event.button === 1) {
// Middle click - open in new tab
@@ -230,8 +229,7 @@ Middle-click to open in new tab`}
</a>
{:else}
<!-- Edit Journal button. Creates a modal to edit the journal. -->
<!-- <button
type="button"
<!-- <button type="button"
onclick={() => {
tmp_journal_obj = {
name: $lq__journal_obj?.name,
@@ -265,8 +263,7 @@ Middle-click to open in new tab`}
<!-- <span class="text-sm text-gray-500 hidden md:inline">
New entry:
</span> -->
<button
type="button"
<button type="button"
onclick={() => {
// $journals_sess.show__modal_new__journal_entry_obj = true;