Better sorting of presentations and session files. Slight style changes.
This commit is contained in:
@@ -655,7 +655,7 @@ export let close_event_file_as_modal = function close_event_file_as_modal({}) {
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => ($events_loc.launcher.hide_drawer__cfg = false)}
|
||||
class="btn btn-sm p-0.5 variant-soft-error hover:variant-filled-error transition-all duration-1000"
|
||||
class="btn btn-sm p-2.5 variant-soft-error hover:variant-filled-error transition-all duration-1000"
|
||||
class:opacity-25={!$ae_loc.trusted_access}
|
||||
class:hover:opacity-75={!$ae_loc.trusted_access}
|
||||
>
|
||||
@@ -876,6 +876,10 @@ export let close_event_file_as_modal = function close_event_file_as_modal({}) {
|
||||
type={'cmd'}
|
||||
bind:trigger_send={$events_sess.launcher.controller_trigger_send}
|
||||
|
||||
bind:hide__ws_form={$events_loc.launcher.hide__ws_form}
|
||||
bind:hide__ws_messages={$events_loc.launcher.hide__ws_messages}
|
||||
bind:hide__ws_commands={$events_loc.launcher.hide__ws_commands}
|
||||
|
||||
on:ws_conn={handle_ws_conn}
|
||||
on:ws_recv={handle_ws_recv}
|
||||
on:ws_sent={handle_ws_sent}
|
||||
|
||||
@@ -56,7 +56,9 @@ let lq__event_file_obj_li = liveQuery(
|
||||
// .where('event_session_id_random')
|
||||
.where('for_id_random')
|
||||
.equals($events_slct.event_session_id)
|
||||
.sortBy('filename')
|
||||
.reverse() // Need reverse for created_on newest first.
|
||||
.sortBy('created_on') // or filename
|
||||
|
||||
);
|
||||
|
||||
// Does not refresh when the event_file_id_li_json changes.
|
||||
@@ -73,10 +75,14 @@ let lq__event_file_obj_li = liveQuery(
|
||||
// );
|
||||
|
||||
$: lq__event_presentation_obj_li = liveQuery(async () => {
|
||||
let sort_by = 'start_datetime';
|
||||
if ($lq__event_session_obj.type_code == 'poster') {
|
||||
sort_by = 'name';
|
||||
}
|
||||
let results = await db_events.presentations
|
||||
.where('event_session_id_random')
|
||||
.equals($events_slct.event_session_id)
|
||||
.sortBy('start_datetime');
|
||||
.sortBy(sort_by);
|
||||
// .sortBy('name')
|
||||
|
||||
return results;
|
||||
|
||||
Reference in New Issue
Block a user