Lots of style clean up for buttons in Novi. Various bug fixes. Clean up of initial recovery meeting loading.
This commit is contained in:
@@ -234,7 +234,7 @@ if (browser) {
|
||||
$idaa_sess.archives.show__modal_view__archive_id = $idaa_slct.archive_id;
|
||||
$idaa_sess.archives.show__modal_edit__archive_id = false;
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-warning hover:variant-filled-warning transition"
|
||||
class="novi_btn btn btn-sm variant-ghost-warning hover:variant-filled-warning transition"
|
||||
title={`View meeting: ${$lq__archive_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span> View
|
||||
@@ -301,7 +301,7 @@ if (browser) {
|
||||
$idaa_sess.archives.show__modal_view__archive_content_id = $idaa_slct.archive_content_id;
|
||||
$idaa_sess.archives.show__modal_edit__archive_content_id = false;
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-warning hover:variant-filled-warning transition"
|
||||
class="novi_btn btn btn-sm variant-ghost-warning hover:variant-filled-warning transition"
|
||||
title={`View meeting: ${$lq__archive_content_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span> View
|
||||
@@ -344,46 +344,8 @@ if (browser) {
|
||||
|
||||
|
||||
<!-- Modal: Archive Content ID media player -->
|
||||
<!-- {#if $lq__archive_content_obj?.name} -->
|
||||
{#if $idaa_slct.archive_content_id && $idaa_sess.archives.show__modal_view__archive_content_id}
|
||||
<Modal_media_player
|
||||
lq__archive_content_obj={lq__archive_content_obj}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
{#if 1==2}
|
||||
<Modal
|
||||
bind:open={$idaa_sess.archives.show__modal_view__archive_content_id}
|
||||
title="{$lq__archive_content_obj?.name} - {$lq__archive_content_obj?.archive_content_id}"
|
||||
autoclose={true}
|
||||
onclose={() => {
|
||||
// We want to cancel the inline edit if the modal is closed
|
||||
// $idaa_sess.archives.show__inline_edit__archive_content_id = false;
|
||||
}}
|
||||
outsideclose={true}
|
||||
placement="top-center"
|
||||
size="xl"
|
||||
class="top-center bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-200 rounded-lg border-gray-200 dark:border-gray-700 divide-gray-200 dark:divide-gray-700 shadow-md relative flex flex-col mx-auto w-full divide-y"
|
||||
>
|
||||
|
||||
{#snippet header()}
|
||||
|
||||
<div class="flex flex-row items-center justify-between w-full">
|
||||
<h3 class="text-lg font-semibold">
|
||||
<span class="text-sm text-gray-500">
|
||||
Viewing:
|
||||
</span>
|
||||
{$idaa_slct.archive_content_obj?.name} - {$lq__archive_content_obj?.archive_content_id}</h3>
|
||||
</div>
|
||||
|
||||
|
||||
{/snippet}
|
||||
|
||||
<Media_player
|
||||
<Modal_media_player
|
||||
lq__archive_content_obj={lq__archive_content_obj}
|
||||
/>
|
||||
|
||||
{$lq__archive_content_obj?.archive_content_id}
|
||||
|
||||
</Modal>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
@@ -331,7 +331,7 @@ async function handle_hosted_files_uploaded(hosted_file_id_li: string[], hosted_
|
||||
</label>
|
||||
|
||||
<label for="description" class="w-full">
|
||||
Description
|
||||
Description
|
||||
<Tiptap_editor
|
||||
default_minimal={true}
|
||||
bind:html_text={$idaa_slct.archive_content_obj.description}
|
||||
@@ -486,7 +486,7 @@ async function handle_hosted_files_uploaded(hosted_file_id_li: string[], hosted_
|
||||
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm variant-soft-error float-right"
|
||||
class="novi_btn btn btn-sm variant-soft-error float-right"
|
||||
>
|
||||
{#await prom_api__archive_content_obj__hosted_file}
|
||||
<span class="fas fa-spinner fa-spin m-1"></span>
|
||||
@@ -590,7 +590,7 @@ async function handle_hosted_files_uploaded(hosted_file_id_li: string[], hosted_
|
||||
{#if $ae_loc.trusted_access}
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm variant-soft-secondary float-right"
|
||||
class="novi_btn btn btn-sm variant-soft-secondary float-right"
|
||||
on:click={() => {
|
||||
$idaa_loc.archives.show__admin_options = !$idaa_loc.archives.show__admin_options;
|
||||
}}
|
||||
@@ -710,6 +710,7 @@ async function handle_hosted_files_uploaded(hosted_file_id_li: string[], hosted_
|
||||
{#if $ae_loc.trusted_access}
|
||||
<label
|
||||
for="notes"
|
||||
class="w-full"
|
||||
>
|
||||
<span class="legend text-sm font-semibold">Internal Staff Notes</span>
|
||||
<Tiptap_editor
|
||||
@@ -734,7 +735,7 @@ async function handle_hosted_files_uploaded(hosted_file_id_li: string[], hosted_
|
||||
<button
|
||||
type="submit"
|
||||
disabled={disable_submit_btn}
|
||||
class="btn btn-md variant-ghost-primary hover:variant-filled-primary transition"
|
||||
class="novi_btn btn btn-md variant-ghost-primary hover:variant-filled-primary transition"
|
||||
>
|
||||
<span class="fas fa-check m-1"></span>
|
||||
Save Archive Content
|
||||
@@ -758,7 +759,7 @@ async function handle_hosted_files_uploaded(hosted_file_id_li: string[], hosted_
|
||||
$idaa_sess.archives.show__modal_edit__archive_content_id = false;
|
||||
$idaa_sess.archives.show__modal_view__archive_content_id = false;
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="novi_btn btn btn-sm variant-soft-warning"
|
||||
title="Disable this archive content"
|
||||
>
|
||||
<span class="fas fa-minus m-1"></span>
|
||||
|
||||
@@ -134,7 +134,7 @@ let ae_promises: key_val = $state({});
|
||||
|
||||
// window.postMessage({ type: 'download_event_file', hosted_file_id: idaa_archive_content_obj.hosted_file_id, filename: idaa_archive_content_obj.filename, auto_download: true }, '*');
|
||||
}}
|
||||
class="btn btn-sm lg:btn-md variant-soft-primary hover:variant-filled-primary min-w-72 lg:min-w-96"
|
||||
class="novi_btn btn btn-sm lg:btn-md variant-soft-primary hover:variant-filled-primary min-w-72 lg:min-w-96"
|
||||
title={`Download this file:\n${idaa_archive_content_obj.filename}\n[API] SHA256: ${idaa_archive_content_obj?.hash_sha256.slice(0, 10)}... Hosted ID: ${idaa_archive_content_obj.hosted_file_id} Archive Content ID: ${idaa_archive_content_obj.archive_content_id}`}
|
||||
>
|
||||
{#await ae_promises[idaa_archive_content_obj.hosted_file_id]}
|
||||
@@ -180,7 +180,7 @@ let ae_promises: key_val = $state({});
|
||||
$idaa_sess.archives.show__modal_view__archive_content_id = false;
|
||||
$idaa_sess.archives.show__modal_edit__archive_content_id = $idaa_slct.archive_content_id;
|
||||
}}
|
||||
class="btn btn-sm variant-glass-warning hover:variant-filled-warning transition"
|
||||
class="novi_btn btn btn-sm variant-glass-warning hover:variant-filled-warning transition"
|
||||
title={`Edit archive content: ${idaa_archive_content_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Edit Content
|
||||
|
||||
@@ -303,7 +303,7 @@ async function handle_delete_archive_obj(
|
||||
>
|
||||
</label>
|
||||
|
||||
<label for="description">
|
||||
<label for="description" class="w-full">
|
||||
Description
|
||||
<Tiptap_editor
|
||||
default_minimal={true}
|
||||
@@ -437,7 +437,7 @@ async function handle_delete_archive_obj(
|
||||
{#if $ae_loc.trusted_access}
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm variant-soft-secondary float-right"
|
||||
class="novi_btn btn btn-sm variant-soft-secondary float-right"
|
||||
onclick={() => {
|
||||
$idaa_loc.archives.show__admin_options = !$idaa_loc.archives.show__admin_options;
|
||||
}}
|
||||
@@ -557,6 +557,7 @@ async function handle_delete_archive_obj(
|
||||
{#if $ae_loc.trusted_access}
|
||||
<label
|
||||
for="notes"
|
||||
class="w-full"
|
||||
>
|
||||
<span class="legend text-sm font-semibold">Internal Staff Notes</span>
|
||||
<Tiptap_editor
|
||||
@@ -580,7 +581,7 @@ async function handle_delete_archive_obj(
|
||||
<section class="ae_section ae_options flex flex-row gap-1 items-center justify-center">
|
||||
<button
|
||||
type="submit"
|
||||
class="btn btn-md variant-ghost-primary hover:variant-filled-primary transition"
|
||||
class="novi_btn btn btn-md variant-ghost-primary hover:variant-filled-primary transition"
|
||||
>
|
||||
<span class="fas fa-check m-1"></span>
|
||||
Save Archive
|
||||
@@ -594,7 +595,7 @@ async function handle_delete_archive_obj(
|
||||
if (!confirm('Are you sure you want to delete this archive?')) {return false;}
|
||||
handle_delete_archive_obj({archive_id: $idaa_slct.archive_id});
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="novi_btn btn btn-sm variant-soft-warning"
|
||||
>
|
||||
<span class="fas fa-minus m-1"></span> Delete
|
||||
</button>
|
||||
|
||||
@@ -117,7 +117,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
// console.log(`load_archive_content_obj_li = `, load_archive_content_obj_li);
|
||||
// $idaa_slct.archive_content_obj_li = load_archive_content_obj_li;
|
||||
}}
|
||||
class="btn_show_archives_archive_content ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
class="novi_btn btn_show_archives_archive_content ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span> Show Hidden Content
|
||||
</button>
|
||||
@@ -145,7 +145,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
// console.log(`load_archive_content_obj_li = `, load_archive_content_obj_li);
|
||||
// $idaa_slct.archive_content_obj_li = load_archive_content_obj_li;
|
||||
}}
|
||||
class="btn_hide_archives_archive_content ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
class="novi_btn btn_hide_archives_archive_content ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
>
|
||||
<span class="fas fa-eye-slash m-1"></span> Hide Hidden Content
|
||||
</button>
|
||||
@@ -173,7 +173,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
// log_lvl: log_lvl
|
||||
// });
|
||||
}}
|
||||
class="btn_show_bb_post ae_btn btn btn-warning btn-sm variant-ghost-secondary"
|
||||
class="novi_btn btn_show_bb_post ae_btn btn btn-warning btn-sm variant-ghost-secondary"
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span> Show Disabled Events
|
||||
</button>
|
||||
@@ -199,7 +199,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
// log_lvl: log_lvl
|
||||
// });
|
||||
}}
|
||||
class="btn_hide_bb_post ae_btn btn btn-warning btn-sm variant-ghost-secondary"
|
||||
class="novi_btn btn_hide_bb_post ae_btn btn btn-warning btn-sm variant-ghost-secondary"
|
||||
>
|
||||
<span class="fas fa-eye-slash m-1"></span> Hide Disabled Events
|
||||
</button>
|
||||
@@ -221,7 +221,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
$idaa_sess.archives.show__modal_view__archive_content_id = false;
|
||||
$idaa_sess.archives.show__modal_edit__archive_content_id = true;
|
||||
}}
|
||||
class="btn btn-sm variant-glass-warning"
|
||||
class="novi_btn btn btn-sm variant-glass-warning"
|
||||
title={`Add content for: ${$lq__archive_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-plus m-1"></span> Add Content
|
||||
@@ -245,7 +245,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
$idaa_sess.archives.show__modal_view__archive_id = false;
|
||||
$idaa_sess.archives.show__modal_edit__archive_id = $idaa_slct.archive_id;
|
||||
}}
|
||||
class="btn btn-sm variant-glass-warning"
|
||||
class="novi_btn btn btn-sm variant-glass-warning"
|
||||
title={`Edit archive: ${$lq__archive_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Edit Archive
|
||||
|
||||
Reference in New Issue
Block a user