More work on getting the BB ready for IDAA. Improved notification handling. Bug fixes related to creating posts and comments.
This commit is contained in:
@@ -89,6 +89,7 @@ $: if ($idaa_trig.post_li) {
|
||||
api_cfg: $ae_api,
|
||||
for_obj_type: 'account',
|
||||
for_obj_id: $idaa_slct.account_id,
|
||||
inc_comment_li: true,
|
||||
enabled: $idaa_loc.bb.qry__enabled,
|
||||
hidden: $idaa_loc.bb.qry__hidden,
|
||||
limit: $idaa_loc.bb.qry__limit,
|
||||
@@ -97,6 +98,25 @@ $: if ($idaa_trig.post_li) {
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
}
|
||||
|
||||
$: if ($idaa_trig.post_id) {
|
||||
$idaa_trig.post_id = false;
|
||||
|
||||
if (log_lvl) {
|
||||
console.log(`Triggered: $idaa_trig.post_id`);
|
||||
}
|
||||
|
||||
$idaa_prom.load__post_obj = posts_func.load_ae_obj_id__post({
|
||||
api_cfg: $ae_api,
|
||||
post_id: $idaa_slct.post_id,
|
||||
enabled: $idaa_loc.bb.qry__enabled,
|
||||
hidden: $idaa_loc.bb.qry__hidden,
|
||||
limit: $idaa_loc.bb.qry__limit,
|
||||
inc_comment_li: true,
|
||||
try_cache: true,
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@@ -801,7 +801,7 @@ function send_staff_notification_email() {
|
||||
</fieldset>
|
||||
</span>
|
||||
{:else}
|
||||
<input type="hidden" name="enable" value={$idaa_slct.post_obj.enable} />
|
||||
<!-- <input type="hidden" name="enable" value={$idaa_slct.post_obj.enable ?? false} /> -->
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ if ($idaa_slct.post_id) {
|
||||
console.log(`Post ID selected: ${$idaa_slct.post_id}`);
|
||||
console.log(`Post Object selected: ${$lq__post_obj}`);
|
||||
|
||||
$idaa_trig = 'load__post_obj';
|
||||
$idaa_trig.post_id = $idaa_slct.post_id;
|
||||
}
|
||||
|
||||
$: if (browser && $lq__post_obj?.post_id) {
|
||||
|
||||
@@ -40,12 +40,13 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
||||
}}
|
||||
class="select w-20 text-sm"
|
||||
>
|
||||
<option value={10}>10</option>
|
||||
<option value={25}>25</option>
|
||||
<option value={50}>50</option>
|
||||
<option value={75}>75</option>
|
||||
<option value={100}>100</option>
|
||||
<option value={200}>200</option>
|
||||
<option value={500}>500</option>
|
||||
<option value={75} class:hidden={!$ae_loc.trusted_access}>75</option>
|
||||
<option value={100} class:hidden={!$ae_loc.trusted_access}>100</option>
|
||||
<option value={200} class:hidden={!$ae_loc.trusted_access}>200</option>
|
||||
<option value={500} class:hidden={!$ae_loc.trusted_access}>500</option>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
@@ -78,8 +79,8 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
$idaa_loc.bb.qry__hidden = 'all';
|
||||
$idaa_loc.bb.qry__enabled = 'all';
|
||||
$idaa_loc.bb.qry__hidden = 'all';
|
||||
$idaa_loc.bb.qry__limit = 500;
|
||||
$idaa_trig.post_li = true;
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user