diff --git a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_qry.svelte b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_qry.svelte index d8ae3ec7..71ba2ee3 100644 --- a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_qry.svelte +++ b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_qry.svelte @@ -37,6 +37,14 @@ import Help_tech from '$lib/app_components/e_app_help_tech.svelte'; let ae_promises: key_val = $state({}); +// Predefined limit steps for the +/- stepper. Trusted staff get larger options +// since they often query with disabled/hidden meetings included. +let limit_steps = $derived($ae_loc.trusted_access ? [25, 50, 100, 150, 200, 500] : [25, 50, 100, 150]); +let limit_idx = $derived.by(() => { + const idx = limit_steps.indexOf($idaa_loc.recovery_meetings.qry__limit); + return idx >= 0 ? idx : limit_steps.length - 1; +}); + // *** Functions and Logic /** * Reactive Search Trigger @@ -184,7 +192,7 @@ function set_sort_mode(mode: string) {
- Location: + Location: - {/each} - {#if $ae_loc.trusted_access} - {#each [200, 500] as n} - {@const active = $idaa_loc.recovery_meetings.qry__limit === n} - - {/each} - {/if} + +
+ Max results: + + + {$idaa_loc.recovery_meetings.qry__limit} + +