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

@@ -193,8 +193,7 @@
<span class="flex flex-row flex-wrap gap-1 items-center justify-center">
{#if !journals_journal_entry_obj.private}
<!-- Button to copy the Markdown version -->
<button
type="button"
<button type="button"
onclick={() => {
let tmp_entry_obj = journals_journal_entry_obj;
@@ -217,8 +216,7 @@
</button>
<!-- Button to copy the rendered to HTML version -->
<button
type="button"
<button type="button"
onclick={() => {
let htmlContent =
journals_journal_entry_obj.content_md_html || '';
@@ -246,8 +244,7 @@
</button>
<!-- Button to copy the rich text (rendered HTML) version -->
<button
type="button"
<button type="button"
onclick={async () => {
const element = document.getElementById(
`rendered_journal_entry_content_${journals_journal_entry_obj.journal_entry_id}`
@@ -286,8 +283,7 @@
</button>
<!-- Clone entry -->
<button
type="button"
<button type="button"
onclick={() => {
let data_kv = {
code: journals_journal_entry_obj.code,
@@ -337,8 +333,7 @@
<span class="text-xs text-gray-500 hidden">Private</span>
<!-- Button to copy the Markdown version -->
<button
type="button"
<button type="button"
onclick={() => {
let tmp_entry_obj = journals_journal_entry_obj;
@@ -401,8 +396,7 @@
<!-- Category code for journal entry -->
{#if journals_journal_entry_obj.category_code}
<button
type="button"
<button type="button"
onclick={() => {
if (
$journals_loc.entry.qry__category_code ==
@@ -440,8 +434,7 @@ Journal ID: ${journals_journal_entry_obj?.journal_id}
</a>
<!-- Button to show a modal that will allow for a quick append to Journal Entry option. -->
<button
type="button"
<button type="button"
onclick={() => {
$journals_sess.show__modal_append__journal_entry_id =
journals_journal_entry_obj?.id;
@@ -561,8 +554,7 @@ Journal ID: ${journals_journal_entry_obj?.journal_id}
</span>
<!-- Set/unset hide (boolean) -->
<button
type="button"
<button type="button"
onclick={() => {
let data_kv = {
hide: journals_journal_entry_obj?.hide ? false : true