Hide empty journal attachments
This commit is contained in:
@@ -191,6 +191,7 @@ async function handle_remove_file(file_id: string) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{#if $ae_loc.edit_mode || unified_file_li.length > 0}
|
||||||
<section class="ae_section journal_entry_files my-2 w-full space-y-4">
|
<section class="ae_section journal_entry_files my-2 w-full space-y-4">
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<div
|
<div
|
||||||
@@ -257,11 +258,6 @@ async function handle_remove_file(file_id: string) {
|
|||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{:else if !$ae_loc.edit_mode}
|
|
||||||
<p
|
|
||||||
class="text-surface-500 bg-surface-500/5 rounded-xl p-4 text-center text-sm italic">
|
|
||||||
No files attached to this entry.
|
|
||||||
</p>
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<!-- Edit/Management Tools -->
|
<!-- Edit/Management Tools -->
|
||||||
@@ -312,3 +308,4 @@ async function handle_remove_file(file_id: string) {
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</section>
|
</section>
|
||||||
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user