Ready to swap out the temporary presenter view file manager section

This commit is contained in:
Scott Idem
2024-06-28 09:42:51 -04:00
parent 2d490d8058
commit d01ab2479f

View File

@@ -80,19 +80,18 @@ onMount(() => {
{#if $lq__event_file_obj_li && $lq__event_file_obj_li.length} {#if $lq__event_file_obj_li && $lq__event_file_obj_li.length}
<table class="table-auto w-full"> <table class="table-auto w-full">
<col width=""> <!-- 35% -->
<col width=""> <!-- 24% -->
<!-- <col width=""> -->
<col width="">
<col width="">
<thead> <thead>
<tr> <tr>
<th class="text-left">File</th> <th class="text-center">File</th>
<th class="text-left">Options</th> <th
<th class="text-left">Status</th> class="text-center"
<th class="text-left">Meta</th> class:hidden={!allow_basic}
>Options</th>
<th
class="text-center"
class:hidden={!allow_basic}
>Status</th>
<th class="text-center">Meta</th>
</tr> </tr>
</thead> </thead>
@@ -100,7 +99,7 @@ onMount(() => {
{#each $lq__event_file_obj_li as event_file_obj} {#each $lq__event_file_obj_li as event_file_obj}
<tr class="ae_obj obj_event_file border-t border-b border-gray-200 hover:bg-gray-50 hover:border-gray-300"> <tr class="ae_obj obj_event_file border-t border-b border-gray-200 hover:bg-gray-50 hover:border-gray-300">
<td class="event_file_info align-middle"> <td class="event_file__file align-middle">
<!-- <div <!-- <div
class="min-w-full" class="min-w-full"
> --> > -->
@@ -152,10 +151,13 @@ onMount(() => {
</button> </button>
<!-- </div> --> <!-- </div> -->
</td> </td>
<td class="event_file_info"> <td
class="event_file__options"
class:hidden={!allow_basic}
>
<div class="flex flex-col gap-1 text-sm"> <div class="flex flex-col gap-1 text-sm">
<button <button
disabled={1==1 || !allow_basic && !allow_moderator} disabled={1==1 || !allow_basic}
class="btn btn-sm variant-glass-tertiary hover:variant-soft-success" class="btn btn-sm variant-glass-tertiary hover:variant-soft-success"
title="The rename function is not ready yet." title="The rename function is not ready yet."
> >
@@ -163,7 +165,7 @@ onMount(() => {
Rename Rename
</button> </button>
<button <button
disabled={!allow_basic && !allow_moderator} disabled={!allow_basic || !allow_moderator}
class:hidden={!$ae_loc.administrator_access} class:hidden={!$ae_loc.administrator_access}
class="btn btn-sm variant-glass-tertiary hover:variant-soft-success" class="btn btn-sm variant-glass-tertiary hover:variant-soft-success"
title="Hide this file from the presentation launcher" title="Hide this file from the presentation launcher"
@@ -172,7 +174,7 @@ onMount(() => {
Hide Hide
</button> </button>
<button <button
disabled={!allow_moderator} disabled={!allow_basic}
on:click={async () => { on:click={async () => {
if (!confirm(`Are you sure you want to delete this file?\n${event_file_obj.filename} [${event_file_obj.event_file_id_random}]`)) {return false;} if (!confirm(`Are you sure you want to delete this file?\n${event_file_obj.filename} [${event_file_obj.event_file_id_random}]`)) {return false;}
@@ -193,7 +195,10 @@ onMount(() => {
</button> </button>
</div> </div>
</td> </td>
<td class="event_file_info"> <td
class="event_file__status"
class:hidden={!allow_basic}
>
<div class="flex flex-col gap-1 items-center text-sm"> <div class="flex flex-col gap-1 items-center text-sm">
<div class=""> <div class="">