Implemented 'only_priority' filtering for V3 Lookups.

- Updated V3 lookup API and core timezone loader to support the 'only_priority' flag.
- Enabled high-priority timezone filtering in IDAA Recovery Meeting and Archive editors to streamline selection lists.
This commit is contained in:
Scott Idem
2026-02-20 17:17:09 -05:00
parent 52c9e765a0
commit 2dfc8a5034
6 changed files with 16 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import { db_core } from '$lib/ae_core/db_core';
const ae_promises: key_val = {};
// Updated 2024-10-14
// Updated 2026-02-20
export async function load_ae_obj_li__time_zone({
api_cfg,
// account_id,
@@ -16,6 +16,7 @@ export async function load_ae_obj_li__time_zone({
// order_by_li = {'priority': 'DESC', 'group': 'ASC', 'sort': 'DESC', 'name': 'ASC'},
order_by_li = { priority: 'DESC', sort: 'DESC', name: 'ASC' } as const,
params = {},
only_priority = false,
try_cache = true,
log_lvl = 0
}: {
@@ -27,11 +28,12 @@ export async function load_ae_obj_li__time_zone({
offset?: number;
order_by_li?: key_val;
params?: key_val;
only_priority?: boolean;
try_cache?: boolean;
log_lvl?: number;
}) {
if (log_lvl) {
console.log(`*** load_ae_obj_li__time_zone() ***`);
console.log(`*** load_ae_obj_li__time_zone() *** only_priority=${only_priority}`);
}
const params_json: key_val = {};
@@ -47,6 +49,7 @@ export async function load_ae_obj_li__time_zone({
limit: limit,
offset: offset,
params: params,
only_priority: only_priority,
log_lvl: log_lvl
})
.then(function (time_zone_li_get_result) {