Ready to swap out the temporary presenter view file manager section
This commit is contained in:
@@ -80,19 +80,18 @@ onMount(() => {
|
||||
{#if $lq__event_file_obj_li && $lq__event_file_obj_li.length}
|
||||
|
||||
<table class="table-auto w-full">
|
||||
|
||||
<col width=""> <!-- 35% -->
|
||||
<col width=""> <!-- 24% -->
|
||||
<!-- <col width=""> -->
|
||||
<col width="">
|
||||
<col width="">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left">File</th>
|
||||
<th class="text-left">Options</th>
|
||||
<th class="text-left">Status</th>
|
||||
<th class="text-left">Meta</th>
|
||||
<th class="text-center">File</th>
|
||||
<th
|
||||
class="text-center"
|
||||
class:hidden={!allow_basic}
|
||||
>Options</th>
|
||||
<th
|
||||
class="text-center"
|
||||
class:hidden={!allow_basic}
|
||||
>Status</th>
|
||||
<th class="text-center">Meta</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -100,7 +99,7 @@ onMount(() => {
|
||||
|
||||
{#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">
|
||||
<td class="event_file_info align-middle">
|
||||
<td class="event_file__file align-middle">
|
||||
<!-- <div
|
||||
class="min-w-full"
|
||||
> -->
|
||||
@@ -152,10 +151,13 @@ onMount(() => {
|
||||
</button>
|
||||
<!-- </div> -->
|
||||
</td>
|
||||
<td class="event_file_info">
|
||||
<td
|
||||
class="event_file__options"
|
||||
class:hidden={!allow_basic}
|
||||
>
|
||||
<div class="flex flex-col gap-1 text-sm">
|
||||
<button
|
||||
disabled={1==1 || !allow_basic && !allow_moderator}
|
||||
disabled={1==1 || !allow_basic}
|
||||
class="btn btn-sm variant-glass-tertiary hover:variant-soft-success"
|
||||
title="The rename function is not ready yet."
|
||||
>
|
||||
@@ -163,7 +165,7 @@ onMount(() => {
|
||||
Rename
|
||||
</button>
|
||||
<button
|
||||
disabled={!allow_basic && !allow_moderator}
|
||||
disabled={!allow_basic || !allow_moderator}
|
||||
class:hidden={!$ae_loc.administrator_access}
|
||||
class="btn btn-sm variant-glass-tertiary hover:variant-soft-success"
|
||||
title="Hide this file from the presentation launcher"
|
||||
@@ -172,7 +174,7 @@ onMount(() => {
|
||||
Hide
|
||||
</button>
|
||||
<button
|
||||
disabled={!allow_moderator}
|
||||
disabled={!allow_basic}
|
||||
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;}
|
||||
|
||||
@@ -193,7 +195,10 @@ onMount(() => {
|
||||
</button>
|
||||
</div>
|
||||
</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="">
|
||||
|
||||
Reference in New Issue
Block a user