Lots of style clean up for buttons in Novi. Various bug fixes. Clean up of initial recovery meeting loading.
This commit is contained in:
@@ -195,7 +195,7 @@ $: if ($idaa_trig.post_id) {
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = true;
|
||||
}
|
||||
}}
|
||||
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={`Edit meeting: ${$lq__post_obj?.title}`}
|
||||
>
|
||||
{#if $idaa_sess.bb.show__inline_edit__post_obj}
|
||||
|
||||
@@ -316,7 +316,7 @@ function send_poster_notification_email() {
|
||||
on:click={() => {
|
||||
$idaa_sess.bb.show__inline_edit__post_comment_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="Cancel editing of post comment for {$idaa_slct.post_comment_obj?.full_name} (ID: {$idaa_slct.post_comment_obj?.post_id}"
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Cancel Edit
|
||||
@@ -446,7 +446,7 @@ function send_poster_notification_email() {
|
||||
{#if $ae_loc.trusted_access}
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm variant-soft-warning float-right"
|
||||
class="novi_btn btn btn-sm variant-soft-warning float-right"
|
||||
on:click={() => {
|
||||
$idaa_loc.bb.show__admin_options = !$idaa_loc.bb.show__admin_options;
|
||||
}}
|
||||
@@ -586,7 +586,7 @@ function send_poster_notification_email() {
|
||||
<button
|
||||
type="submit"
|
||||
disabled={(disable_submit_btn)}
|
||||
class="ae_btn btn_primary btn btn-primary variant-ghost-primary hover:variant-filled-primary transition"
|
||||
class="novi_btn btn_primary btn btn-primary variant-ghost-primary hover:variant-filled-primary transition"
|
||||
>
|
||||
{#await prom_api__post_comment_obj}
|
||||
<span class="fas fa-spinner fa-spin m-1"></span> Saving
|
||||
@@ -602,7 +602,7 @@ function send_poster_notification_email() {
|
||||
if (!confirm('Are you sure you want to create this post?')) {return false;}
|
||||
// handle_save_post_comment_obj({post_id: $idaa_slct.post_id, method: 'create'});
|
||||
}}
|
||||
class="ae_btn btn_primary btn btn-primary variant-ghost-primary hover:variant-filled-primary transition"
|
||||
class="novi_btn btn_primary btn btn-primary variant-ghost-primary hover:variant-filled-primary transition"
|
||||
>
|
||||
{#await prom_api__post_comment_obj}
|
||||
<span class="fas fa-spinner fa-spin m-1"></span> Saving
|
||||
@@ -620,7 +620,7 @@ function send_poster_notification_email() {
|
||||
if (!confirm('Are you sure you want to delete this post comment?')) {return false;}
|
||||
handle_delete_post_comment_obj({post_comment_id: $idaa_slct.post_comment_id, method: 'delete'});
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="novi_btn btn btn-sm variant-soft-warning"
|
||||
title="Delete record permanently"
|
||||
>
|
||||
<span class="fas fa-minus m-1"></span> Delete
|
||||
@@ -632,7 +632,7 @@ function send_poster_notification_email() {
|
||||
if (!confirm('Are you sure you want to disable this post comment?')) {return false;}
|
||||
handle_delete_post_comment_obj({post_comment_id: $idaa_slct.post_comment_id, method: 'disable'});
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="novi_btn btn btn-sm variant-soft-warning"
|
||||
title="Disable record to delete"
|
||||
>
|
||||
<span class="fas fa-minus m-1"></span> Delete
|
||||
@@ -644,7 +644,7 @@ function send_poster_notification_email() {
|
||||
if (!confirm('Are you sure you want to hide this post comment?')) {return false;}
|
||||
handle_delete_post_comment_obj({post_comment_id: $idaa_slct.post_comment_id, method: 'hide'});
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="novi_btn btn btn-sm variant-soft-warning"
|
||||
title="Hide record to delete"
|
||||
>
|
||||
<span class="fas fa-comment-slash m-1"></span> Delete
|
||||
@@ -659,7 +659,7 @@ function send_poster_notification_email() {
|
||||
on:click={() => {
|
||||
$idaa_sess.bb.show__inline_edit__post_comment_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="Cancel editing of post for {$idaa_slct.post_comment_obj.full_name} (ID: {$idaa_slct.post_comment_obj.post_comment_id}"
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Cancel Edit
|
||||
|
||||
@@ -329,7 +329,7 @@ function send_staff_notification_email() {
|
||||
on:click={() => {
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = 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="Cancel editing of post for {$idaa_slct.post_obj.full_name} (ID: {$idaa_slct.post_obj.post_id}"
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Cancel Edit
|
||||
@@ -396,7 +396,7 @@ function send_staff_notification_email() {
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm"
|
||||
class="novi_btn btn btn-sm"
|
||||
class:variant-filled-secondary={$idaa_sess.bb.show__inline_edit__file_upload}
|
||||
class:variant-soft-secondary={!$idaa_sess.bb.show__inline_edit__file_upload}
|
||||
on:click={() => {
|
||||
@@ -410,6 +410,9 @@ function send_staff_notification_email() {
|
||||
<div
|
||||
class:hidden={!$idaa_sess.bb.show__inline_edit__file_upload}
|
||||
>
|
||||
<div class="text-sm bg-warning-400 p-2 rounded">
|
||||
WARNING - This feature is currently only available to staff. It is intended for attaching something like a PDF or image to a specific post.
|
||||
</div>
|
||||
{#if $ae_loc.trusted_access}
|
||||
<Comp_hosted_files_upload
|
||||
class_li="border border-gray-300 rounded-md p-2 bg-gray-100 hover:bg-gray-200"
|
||||
@@ -467,7 +470,7 @@ function send_staff_notification_email() {
|
||||
|
||||
// window.postMessage({ type: 'download_event_file', hosted_file_id: linked_obj.hosted_file_id_random, filename: linked_obj.filename, auto_download: true }, '*');
|
||||
}}
|
||||
class="btn btn-sm lg:btn-md variant-ghost-primary hover:variant-filled-primary min-w-48"
|
||||
class="novi_btn btn btn-sm lg:btn-md variant-ghost-tertiary hover:variant-filled-tertiary min-w-48"
|
||||
title={`Download this file:\n${linked_obj.filename}\n[API] SHA256: ${linked_obj?.hash_sha256.slice(0, 10)}... Hosted ID: ${linked_obj.hosted_file_id_random} Archive Content ID: ${linked_obj.archive_content_id}`}
|
||||
>
|
||||
{#await ae_promises[linked_obj.hosted_file_id_random]}
|
||||
@@ -546,7 +549,7 @@ function send_staff_notification_email() {
|
||||
});
|
||||
|
||||
}}
|
||||
class="btn btn-sm variant-glass-tertiary hover:variant-soft-success"
|
||||
class="novi_btn btn btn-sm variant-soft-warning hover:variant-ghost-warning"
|
||||
title="Delete this file"
|
||||
>
|
||||
<span class="fas fa-trash-alt mx-1"></span>
|
||||
@@ -720,7 +723,7 @@ function send_staff_notification_email() {
|
||||
{#if $ae_loc.trusted_access}
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm variant-soft-warning float-right"
|
||||
class="novi_btn btn btn-sm variant-soft-warning float-right"
|
||||
class:variant-filled-secondary={$idaa_loc.bb.show__admin_options}
|
||||
class:variant-soft-secondary={!$idaa_loc.bb.show__admin_options}
|
||||
on:click={() => {
|
||||
@@ -865,7 +868,7 @@ function send_staff_notification_email() {
|
||||
<button
|
||||
type="submit"
|
||||
disabled={(disable_submit_btn)}
|
||||
class="ae_btn btn_primary btn btn-primary variant-ghost-primary hover:variant-filled-primary transition"
|
||||
class="novi_btn btn_primary btn btn-primary variant-ghost-primary hover:variant-filled-primary transition"
|
||||
>
|
||||
{#await prom_api__post_obj}
|
||||
<span class="fas fa-spinner fa-spin m-1"></span> Saving
|
||||
@@ -881,7 +884,7 @@ function send_staff_notification_email() {
|
||||
if (!confirm('Are you sure you want to create this post?')) {return false;}
|
||||
// handle_save_post_obj({post_id: $idaa_slct.post_id, method: 'create'});
|
||||
}}
|
||||
class="ae_btn btn_primary btn btn-primary variant-ghost-primary hover:variant-filled-primary transition"
|
||||
class="novi_btn btn_primary btn btn-primary variant-ghost-primary hover:variant-filled-primary transition"
|
||||
>
|
||||
{#await prom_api__post_obj}
|
||||
<span class="fas fa-spinner fa-spin m-1"></span> Saving
|
||||
@@ -899,7 +902,7 @@ function send_staff_notification_email() {
|
||||
if (!confirm('Are you sure you want to delete this post?')) {return false;}
|
||||
handle_delete_post_obj({post_id: $idaa_slct.post_id, method: 'delete'});
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="novi_btn btn btn-sm variant-soft-warning"
|
||||
title="Delete record permanently"
|
||||
>
|
||||
<span class="fas fa-minus m-1"></span> Delete
|
||||
@@ -911,7 +914,7 @@ function send_staff_notification_email() {
|
||||
if (!confirm('Are you sure you want to disable this post?')) {return false;}
|
||||
handle_delete_post_obj({post_id: $idaa_slct.post_id, method: 'disable'});
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="novi_btn btn btn-sm variant-soft-warning"
|
||||
title="Disable record to delete"
|
||||
>
|
||||
<span class="fas fa-minus m-1"></span> Delete
|
||||
@@ -923,7 +926,7 @@ function send_staff_notification_email() {
|
||||
if (!confirm('Are you sure you want to hide this post?')) {return false;}
|
||||
handle_delete_post_obj({post_id: $idaa_slct.post_id, method: 'hide'});
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="novi_btn btn btn-sm variant-soft-warning"
|
||||
title="Hide record to delete"
|
||||
>
|
||||
<span class="fas fa-comment-slash m-1"></span> Delete
|
||||
@@ -938,7 +941,7 @@ function send_staff_notification_email() {
|
||||
on:click={() => {
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = 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="Cancel editing of post for {$idaa_slct.post_obj.full_name} (ID: {$idaa_slct.post_obj.post_id}"
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Cancel Edit
|
||||
|
||||
@@ -143,7 +143,7 @@ onDestroy(() => {
|
||||
|
||||
// window.postMessage({ type: 'download_event_file', hosted_file_id: linked_obj.hosted_file_id_random, filename: linked_obj.filename, auto_download: true }, '*');
|
||||
}}
|
||||
class="btn btn-sm lg:btn-md variant-soft-primary hover:variant-filled-primary min-w-48"
|
||||
class="novi_btn btn btn-sm lg:btn-md variant-ghost-tertiary hover:variant-filled-tertiary min-w-48"
|
||||
title={`Download this file:\n${linked_obj.filename}\n[API] SHA256: ${linked_obj?.hash_sha256.slice(0, 10)}... Hosted ID: ${linked_obj.hosted_file_id_random} Archive Content ID: ${linked_obj.archive_content_id}`}
|
||||
>
|
||||
{#await ae_promises[linked_obj.hosted_file_id_random]}
|
||||
@@ -224,7 +224,7 @@ onDestroy(() => {
|
||||
$idaa_sess.bb.show__inline_edit__post_comment_id = true;
|
||||
}
|
||||
}}
|
||||
class="btn btn-md variant-ghost-secondary hover:variant-filled-secondary transition"
|
||||
class="novi_btn btn btn-md variant-ghost-secondary hover:variant-filled-secondary transition"
|
||||
title={`New comment on: ${$lq__post_obj?.title}`}
|
||||
>
|
||||
<span class="fas fa-plus m-1"></span> New Comment
|
||||
@@ -247,7 +247,7 @@ onDestroy(() => {
|
||||
// $idaa_sess.bb.show_view__post_id = false;
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = true;
|
||||
}}
|
||||
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="Edit post for {$lq__post_obj?.full_name} (ID: {$lq__post_obj?.post_id}"
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Edit Post
|
||||
@@ -318,7 +318,7 @@ onDestroy(() => {
|
||||
|
||||
$idaa_sess.bb.show__inline_edit__post_comment_id = post_comment_obj.post_comment_id;
|
||||
}}
|
||||
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="Edit comment by {post_comment_obj?.full_name} (for post ID {$lq__post_obj?.id})"
|
||||
>
|
||||
<span class="fas fa-edit"></span> Edit Comment
|
||||
|
||||
@@ -63,7 +63,7 @@ onMount(() => {
|
||||
$idaa_sess.bb.show__modal_view__post_id = idaa_post_obj?.post_id;
|
||||
$idaa_sess.bb.show__modal_edit__post_id = false;
|
||||
}}
|
||||
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"
|
||||
title={`View: ${idaa_post_obj?.title}`}
|
||||
>
|
||||
<span class="fas fa-envelope-open m-1"></span> Open
|
||||
@@ -95,7 +95,7 @@ onMount(() => {
|
||||
$idaa_sess.bb.show__modal_view__post_id = idaa_post_obj.post_id;
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = true;
|
||||
}}
|
||||
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={`Edit post: ${idaa_post_obj.title}`}
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Edit Post
|
||||
|
||||
@@ -58,7 +58,7 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
||||
$idaa_loc.bb.qry__limit = 100;
|
||||
$idaa_trig.post_li = true;
|
||||
}}
|
||||
class="btn_show_bb_post ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
class="novi_btn btn_show_bb_post ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span> Show Hidden Posts
|
||||
</button>
|
||||
@@ -69,7 +69,7 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
||||
$idaa_loc.bb.qry__hidden = 'not_hidden';
|
||||
$idaa_trig.post_li = true;
|
||||
}}
|
||||
class="btn_hide_bb_post ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
class="novi_btn btn_hide_bb_post ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
>
|
||||
<span class="fas fa-eye-slash m-1"></span> Hide Hidden Posts
|
||||
</button>
|
||||
@@ -84,7 +84,7 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
||||
$idaa_loc.bb.qry__limit = 500;
|
||||
$idaa_trig.post_li = true;
|
||||
}}
|
||||
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 Posts
|
||||
</button>
|
||||
@@ -95,7 +95,7 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
||||
$idaa_loc.bb.qry__enabled = 'enabled';
|
||||
$idaa_trig.post_li = true;
|
||||
}}
|
||||
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 Posts
|
||||
</button>
|
||||
@@ -126,7 +126,7 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
||||
$idaa_sess.bb.show__modal_view__post_id = true;
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = true;
|
||||
}}
|
||||
class="btn_new_post btn btn-sm variant-ghost-warning hover:variant-filled-warning transition text-xs"
|
||||
class="novi_btn btn_new_post btn btn-sm variant-ghost-warning hover:variant-filled-warning transition text-xs"
|
||||
title="Create new post"
|
||||
>
|
||||
<span class="fas fa-plus m-1"></span> Create New Post
|
||||
|
||||
Reference in New Issue
Block a user