Getting ready to make the new hosted file management and tools live on dev. Then on prod...
This commit is contained in:
@@ -5,7 +5,7 @@ import { error } from '@sveltejs/kit';
|
||||
import { browser } from '$app/environment';
|
||||
import { core_func } from '$lib/ae_core/ae_core_functions';
|
||||
|
||||
export async function load({ params, parent }) { // route
|
||||
export async function load({ params, parent, url }) { // route
|
||||
let log_lvl: number = 0;
|
||||
|
||||
let data = await parent();
|
||||
@@ -24,6 +24,12 @@ export async function load({ params, parent }) { // route
|
||||
|
||||
// ae_acct.slct.account_id = account_id;
|
||||
|
||||
let qry_limit = url.searchParams.get('limit') ?? 19;
|
||||
if (!qry_limit) {
|
||||
console.log(`qry_limit +page.ts: The qry_limit was not found in the params!!!`);
|
||||
}
|
||||
ae_acct.slct.qry_limit = qry_limit;
|
||||
|
||||
if (browser) {
|
||||
let load_hosted_file_obj_li = core_func.load_ae_obj_li__hosted_file({
|
||||
api_cfg: ae_acct.api,
|
||||
@@ -31,7 +37,7 @@ export async function load({ params, parent }) { // route
|
||||
for_obj_id: account_id,
|
||||
enabled: 'enabled',
|
||||
hidden: 'not_hidden',
|
||||
limit: 99,
|
||||
limit: qry_limit,
|
||||
order_by_li: {'priority': 'DESC', 'sort': 'DESC', 'updated_on': 'DESC', 'created_on': 'DESC', 'title': 'ASC'},
|
||||
try_cache: true,
|
||||
log_lvl: log_lvl
|
||||
|
||||
Reference in New Issue
Block a user