Better sorting for files

This commit is contained in:
Scott Idem
2024-09-23 15:29:23 -04:00
parent 36283a215b
commit 80b394f16b
3 changed files with 13 additions and 32 deletions

View File

@@ -32,22 +32,10 @@ ae_tmp.show__file_li = true;
ae_tmp.show__direct_download = false;
// let ae_triggers: key_val = {};
// let dq__where_val: string = `${link_to_type}_id_random`;
// let dq__where_eq_val: string = link_to_id;
// let lq__event_file_obj_li = liveQuery(
// async () => await db_events.files
// .where(dq__where_val)
// .equals(dq__where_eq_val)
// .toArray()
// );
onMount(() => {
// console.log('Element - Manage Event File List');
console.log(`link_to_type: ${link_to_type}; link_to_id: ${link_to_id}`);
console.log(`allow_basic: ${allow_basic}; allow_moderator: ${allow_moderator}`);
// $slct_trigger = 'load__event_file_obj_li';
});
</script>
@@ -540,7 +528,7 @@ onMount(() => {
</strong>
{ae_util.iso_datetime_formatter(event_file_obj.created_on, 'date_iso')}
at
<strong>{ae_util.iso_datetime_formatter(event_file_obj.created_on, 'time_12_short_no_leading')}</strong>
<strong>{ae_util.iso_datetime_formatter(event_file_obj.created_on, 'time_long')}</strong>
<!-- {event_file_obj.updated_on} -->
{:else}
<!-- <span class="fas fa-calendar-day mx-1"></span> -->