Now the enable and hide buttons work.
This commit is contained in:
@@ -44,6 +44,8 @@ onMount(() => {
|
||||
class="container recovery_meeting ae_object event_obj border border-1 rounded p-2 mb-2"
|
||||
class:meeting_physical={idaa_event_obj?.physical}
|
||||
class:meeting_virtual={idaa_event_obj?.virtual}
|
||||
class:dim={idaa_event_obj?.hide}
|
||||
class:bg-warning-100={!idaa_event_obj?.enable}
|
||||
>
|
||||
|
||||
<header class="ae_header event__header">
|
||||
@@ -254,7 +256,7 @@ onMount(() => {
|
||||
<div class="event__contact ae_warning">Required: No primary contact information was found!</div>
|
||||
{/if}
|
||||
{#if !idaa_event_obj?.external_person_id}
|
||||
<div class="event__contact ae_warning">Warning: Not linked to a Novi record!</div>
|
||||
<div class="event__contact ae_warning bg-warning-100">Warning: Not linked to a Novi record!</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -62,7 +62,7 @@ async function handle_qry__event(
|
||||
'qry__hidden': $idaa_loc.recovery_meetings.qry__hidden ?? 'not_hidden',
|
||||
'qry__limit': $idaa_loc.recovery_meetings.qry__limit ?? 35,
|
||||
},
|
||||
try_cache = false,
|
||||
try_cache = true,
|
||||
log_lvl = 1,
|
||||
}: {
|
||||
ft_qry_str?: string,
|
||||
@@ -387,21 +387,22 @@ async function handle_qry__event(
|
||||
</select>
|
||||
</span>
|
||||
|
||||
{#if $ae_loc.trusted_access && !$idaa_loc.recovery_meetings.hidden}
|
||||
{#if $ae_loc.trusted_access && !$idaa_loc.recovery_meetings.qry__hidden || $idaa_loc.recovery_meetings.qry__hidden == 'not_hidden'}
|
||||
<button
|
||||
on:click={() => {
|
||||
$idaa_loc.recovery_meetings.hidden = 'all';
|
||||
$idaa_loc.recovery_meetings.limit = 150;
|
||||
$idaa_loc.recovery_meetings.qry__hidden = 'all';
|
||||
$idaa_loc.recovery_meetings.qry__limit = 200;
|
||||
ae_trigger = 'load__event_obj_li';
|
||||
}}
|
||||
class="btn_show_bb_post ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span> Show Hidden Events
|
||||
</button>
|
||||
{:else if $ae_loc.trusted_access && $idaa_loc.recovery_meetings.hidden == 'all'}
|
||||
{:else if $ae_loc.trusted_access && $idaa_loc.recovery_meetings.qry__hidden != 'not_hidden'}
|
||||
<button
|
||||
on:click={() => {
|
||||
$idaa_loc.recovery_meetings.hidden = 'not_hidden';
|
||||
$idaa_loc.recovery_meetings.qry__hidden = 'not_hidden';
|
||||
$idaa_loc.recovery_meetings.qry__limit = 100;
|
||||
ae_trigger = 'load__event_obj_li';
|
||||
}}
|
||||
class="btn_hide_bb_post ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
@@ -410,22 +411,22 @@ async function handle_qry__event(
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
{#if $ae_loc.administrator_access && !$idaa_loc.recovery_meetings.enabled}
|
||||
{#if $ae_loc.administrator_access && !$idaa_loc.recovery_meetings.qry__enabled || $idaa_loc.recovery_meetings.qry__enabled == 'enabled'}
|
||||
<button
|
||||
on:click={() => {
|
||||
$idaa_loc.recovery_meetings.hidden = 'all';
|
||||
$idaa_loc.recovery_meetings.enabled = 'all';
|
||||
$idaa_loc.recovery_meetings.limit = 500;
|
||||
$idaa_loc.recovery_meetings.qry__hidden = 'all';
|
||||
$idaa_loc.recovery_meetings.qry__enabled = 'all';
|
||||
$idaa_loc.recovery_meetings.qry__limit = 500;
|
||||
ae_trigger = 'load__event_obj_li';
|
||||
}}
|
||||
class="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>
|
||||
{:else if $ae_loc.administrator_access && $idaa_loc.recovery_meetings.enabled == 'all'}
|
||||
{:else if $ae_loc.administrator_access && $idaa_loc.recovery_meetings.qry__enabled != 'enabled'}
|
||||
<button
|
||||
on:click={() => {
|
||||
$idaa_loc.recovery_meetings.enabled = 'enabled';
|
||||
$idaa_loc.recovery_meetings.qry__enabled = 'enabled';
|
||||
ae_trigger = 'load__event_obj_li';
|
||||
}}
|
||||
class="btn_hide_bb_post ae_btn btn btn-warning btn-sm variant-ghost-secondary"
|
||||
|
||||
Reference in New Issue
Block a user