Hide empty journal attachments
This commit is contained in:
@@ -191,6 +191,7 @@ async function handle_remove_file(file_id: string) {
|
||||
}
|
||||
</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">
|
||||
<!-- Header -->
|
||||
<div
|
||||
@@ -257,11 +258,6 @@ async function handle_remove_file(file_id: string) {
|
||||
</div>
|
||||
{/each}
|
||||
</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}
|
||||
|
||||
<!-- Edit/Management Tools -->
|
||||
@@ -312,3 +308,4 @@ async function handle_remove_file(file_id: string) {
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user