More work on making things look better. File counts look nicer.

This commit is contained in:
Scott Idem
2024-09-04 14:41:02 -04:00
parent 917cca09ce
commit d5d28149ad
7 changed files with 31 additions and 16 deletions

View File

@@ -29,7 +29,7 @@ export async function handle_load_ae_obj_id__event(
api_cfg: api_cfg,
obj_type: 'event',
obj_id: event_id, // NOTE: This is the FQDN, not normally the ID.
use_alt_table: false, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config.
use_alt_table: true, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config.
use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value in the API config.
params: params,
log_lvl: log_lvl
@@ -90,7 +90,7 @@ export async function handle_load_ae_obj_li__event(
obj_type: 'event',
for_obj_type: 'account',
for_obj_id: account_id,
use_alt_table: false, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config.
use_alt_table: true, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config.
use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value
enabled: enabled,
hidden: hidden,

View File

@@ -209,7 +209,7 @@ let events_local_data_struct: key_val = {
show_content__session_search_help: true,
show_content__session_search_room_name: false,
show_content__session_view: null,
show_content__session_qr: true,
show_content__session_qr: false,
hide__session_poc: true,
show_content__disabled_files: false,

View File

@@ -167,10 +167,13 @@ let lq_kv__event_session_obj_li = liveQuery(
<strong>{session_obj?.name}</strong>
</span>
{#if session_obj?.file_count_all}
<span class="badge variant-glass-success hover:variant-filled-success" title="{session_obj?.file_count_all}&times; files under session">
<span
class="badge variant-glass-success hover:variant-filled-success"
title="{session_obj?.file_count_all}&times; files under session">
<span class="fas fa-file-alt mx-1"></span>
{session_obj?.file_count_all}&times;
</span>
{:else}
<!-- Nothing -->
{/if}

View File

@@ -78,9 +78,12 @@ let ae_triggers: key_val = {};
{:else}
<span class="fas fa-file-archive m-1"></span>
Event Files?
<!-- <span> -->
{$lq__event_obj?.file_count ? `(${$lq__event_obj?.file_count})` : ''}
<!-- </span> -->
<span
class="badge badge-icon variant-glass-success absolute -top-1.5 -right-1.5 z-10"
class:hidden={!$lq__event_obj?.file_count}
>
{$lq__event_obj?.file_count}&times;
</span>
{/if}
</button>

View File

@@ -66,9 +66,12 @@ let ae_triggers: key_val = {};
{:else}
<span class="fas fa-file-archive m-1"></span>
Location Files?
<!-- <span> -->
{$lq__event_location_obj?.file_count ? `(${$lq__event_location_obj?.file_count})` : ''}
<!-- </span> -->
<span
class="badge badge-icon variant-glass-success absolute -top-1.5 -right-1.5 z-10"
class:hidden={!$lq__event_location_obj?.file_count}
>
{$lq__event_location_obj?.file_count}&times;
</span>
{/if}
</button>

View File

@@ -72,9 +72,12 @@ let ae_triggers: key_val = {};
{:else}
<span class="fas fa-file-archive m-1"></span>
Presenter Files?
<!-- <span> -->
{$lq__event_presenter_obj?.file_count ? `(${$lq__event_presenter_obj?.file_count})` : ''}
<!-- </span> -->
<span
class="badge badge-icon variant-glass-success absolute -top-1.5 -right-1.5 z-10"
class:hidden={!$lq__event_presenter_obj?.file_count}
>
{$lq__event_presenter_obj?.file_count}&times;
</span>
{/if}
</button>

View File

@@ -66,9 +66,12 @@ let ae_triggers: key_val = {};
{:else}
<span class="fas fa-file-archive m-1"></span>
Session Files?
<!-- <span> -->
{$lq__event_session_obj?.file_count ? `(${$lq__event_session_obj?.file_count})` : ''}
<!-- </span> -->
<span
class="badge badge-icon variant-glass-success absolute -top-1.5 -right-1.5 z-10"
class:hidden={!$lq__event_session_obj?.file_count}
>
{$lq__event_session_obj?.file_count}&times;
</span>
{/if}
</button>