Do not show Play/View if nothing to play or view
This commit is contained in:
@@ -93,6 +93,7 @@ let ae_promises: key_val = $state({});
|
||||
{#if idaa_archive_content_obj.description}<pre class="archive__description p-2 bg-white shadow-md rounded-lg text-wrap text-sm font-normal whitespace-pre-wrap">{@html idaa_archive_content_obj.description}</pre>{/if}
|
||||
|
||||
<div class="ae_options flex flex-row flex-wrap gap-2 items-center justify-center">
|
||||
{#if idaa_archive_content_obj?.hosted_file_id}
|
||||
<button
|
||||
type="button"
|
||||
disabled={!$ae_loc.authenticated_access}
|
||||
@@ -123,7 +124,8 @@ let ae_promises: key_val = $state({});
|
||||
class="novi_btn btn btn-md btn-secondary preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition"
|
||||
title={`View: ${idaa_archive_content_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-play m-1"></span> Play/View
|
||||
<span class="fas fa-play m-1 text-neutral-800/80"></span>
|
||||
Play/View
|
||||
</button>
|
||||
|
||||
{#if $ae_loc.trusted_access && idaa_archive_content_obj?.hosted_file_id}
|
||||
@@ -194,6 +196,16 @@ let ae_promises: key_val = $state({});
|
||||
<span class="fas fa-edit m-1"></span> Edit Content
|
||||
</button>
|
||||
{/if}
|
||||
{:else}
|
||||
<span
|
||||
class="text-sm text-gray-500 italic"
|
||||
title="No file linked."
|
||||
>
|
||||
<span class="fas fa-exclamation-triangle text-warning"></span>
|
||||
No file linked.
|
||||
<span class="fas fa-exclamation-triangle text-warning"></span>
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<section class="ae_section archive_content__content">
|
||||
|
||||
Reference in New Issue
Block a user