More clean up and bug fixes related to posts. Better enable, hide, limit, etc params.
This commit is contained in:
@@ -30,8 +30,11 @@ export async function load({ params, parent }) { // route
|
||||
for_obj_type: 'account',
|
||||
for_obj_id: account_id,
|
||||
inc_comment_li: true,
|
||||
enabled: 'enabled',
|
||||
hidden: 'not_hidden',
|
||||
limit: 200,
|
||||
order_by_li: {'priority': 'DESC', 'sort': 'DESC', 'updated_on': 'DESC', 'created_on': 'DESC', 'title': 'ASC'},
|
||||
params: {qry__enabled: 'enabled', qry__hidden: 'not_hidden', qry__limit: 200},
|
||||
// params: {qry__enabled: 'enabled', qry__hidden: 'not_hidden', qry__limit: 200},
|
||||
try_cache: true,
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
|
||||
@@ -258,6 +258,7 @@ onDestroy(() => {
|
||||
<div
|
||||
class="p-4 space-y-1 border-b border-b-2"
|
||||
class:dim={post_comment_obj?.hide}
|
||||
class:bg-warning-100={!post_comment_obj?.enable}
|
||||
>
|
||||
|
||||
{#if $idaa_sess.bb.show__inline_edit__post_comment_id == post_comment_obj.post_comment_id}
|
||||
|
||||
@@ -61,8 +61,10 @@ let search_submit_results: any = null;
|
||||
for_obj_type: 'account',
|
||||
for_obj_id: $ae_loc.account_id,
|
||||
inc_comment_li: true,
|
||||
enabled: $idaa_loc.bb.qry__enabled,
|
||||
hidden: $idaa_loc.bb.qry__hidden,
|
||||
limit: $idaa_loc.bb.qry__limit,
|
||||
order_by_li: $idaa_loc.bb.qry__order_by_li,
|
||||
params: {qry__enabled: $idaa_loc.bb.qry__enabled, qry__hidden: $idaa_loc.bb.qry__hidden, qry__limit: $idaa_loc.bb.qry__limit},
|
||||
try_cache: true,
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
@@ -86,8 +88,10 @@ let search_submit_results: any = null;
|
||||
for_obj_type: 'account',
|
||||
for_obj_id: $ae_loc.account_id,
|
||||
inc_comment_li: true,
|
||||
enabled: $idaa_loc.bb.qry__enabled,
|
||||
hidden: $idaa_loc.bb.qry__hidden,
|
||||
limit: $idaa_loc.bb.qry__limit,
|
||||
order_by_li: $idaa_loc.bb.qry__order_by_li,
|
||||
params: {qry__enabled: $idaa_loc.bb.qry__enabled, qry__hidden: $idaa_loc.bb.qry__hidden, qry__limit: $idaa_loc.bb.qry__limit},
|
||||
try_cache: true,
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
@@ -113,8 +117,10 @@ let search_submit_results: any = null;
|
||||
for_obj_type: 'account',
|
||||
for_obj_id: $ae_loc.account_id,
|
||||
inc_comment_li: true,
|
||||
enabled: $idaa_loc.bb.qry__enabled,
|
||||
hidden: $idaa_loc.bb.qry__hidden,
|
||||
limit: $idaa_loc.bb.qry__limit,
|
||||
order_by_li: $idaa_loc.bb.qry__order_by_li,
|
||||
params: {qry__enabled: $idaa_loc.bb.qry__enabled, qry__hidden: $idaa_loc.bb.qry__hidden, qry__limit: $idaa_loc.bb.qry__limit},
|
||||
try_cache: true,
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
@@ -136,8 +142,10 @@ let search_submit_results: any = null;
|
||||
for_obj_type: 'account',
|
||||
for_obj_id: $ae_loc.account_id,
|
||||
inc_comment_li: true,
|
||||
enabled: $idaa_loc.bb.qry__enabled,
|
||||
hidden: $idaa_loc.bb.qry__hidden,
|
||||
limit: $idaa_loc.bb.qry__limit,
|
||||
order_by_li: $idaa_loc.bb.qry__order_by_li,
|
||||
params: {qry__enabled: $idaa_loc.bb.qry__enabled, qry__hidden: $idaa_loc.bb.qry__hidden, qry__limit: $idaa_loc.bb.qry__limit},
|
||||
try_cache: true,
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user