Minor changes and clean up
This commit is contained in:
@@ -121,55 +121,6 @@ $effect(() => {
|
||||
}
|
||||
});
|
||||
|
||||
// $effect(() => {
|
||||
// if ($idaa_trig.post_id) {
|
||||
// // log_lvl = 1;
|
||||
// $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,
|
||||
// })
|
||||
// .then((post_obj) => {
|
||||
// if (log_lvl) {
|
||||
// console.log(`Post object loaded: `, post_obj);
|
||||
// }
|
||||
|
||||
// $idaa_slct.post_obj = post_obj;
|
||||
// $idaa_slct.post_comment_id = null;
|
||||
// $idaa_slct.post_comment_obj = null;
|
||||
|
||||
// // $idaa_sess.bb.show__modal_view__post_id = $idaa_slct.post_id;
|
||||
// // $idaa_sess.bb.show__modal_edit__post_id = false;
|
||||
// });
|
||||
|
||||
// // $idaa_slct.post_obj = $idaa_prom.load__post_obj;
|
||||
|
||||
// if (!page.url.searchParams.get('post_id')) {
|
||||
// const url = new URL(location);
|
||||
// // url.searchParams.set('post_id', $idaa_slct.post_id);
|
||||
// url.searchParams.delete('post_id');
|
||||
// history.pushState({}, '', url);
|
||||
|
||||
// let message = {'post_id': $idaa_slct.post_id};
|
||||
// window.parent.postMessage(message, "*");
|
||||
// }
|
||||
|
||||
// $idaa_sess.bb.show__modal_view__post_id = $idaa_slct.post_id;
|
||||
// $idaa_sess.bb.show__modal_edit__post_id = false;
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
if (browser) {
|
||||
console.log('Browser environment detected.');
|
||||
|
||||
@@ -76,10 +76,10 @@ $effect(() => {
|
||||
window.parent.postMessage(message, "*");
|
||||
}
|
||||
|
||||
$idaa_sess.recovery_meetings.show__modal_view = $idaa_slct.event_id;
|
||||
$idaa_sess.recovery_meetings.show__modal_view__event_id = $idaa_slct.event_id;
|
||||
$idaa_sess.recovery_meetings.show__modal_edit = false;
|
||||
$idaa_sess.recovery_meetings.show__modal_edit__event_id = false;
|
||||
// $idaa_sess.recovery_meetings.show__modal_view = $idaa_slct.event_id;
|
||||
// $idaa_sess.recovery_meetings.show__modal_view__event_id = $idaa_slct.event_id;
|
||||
// $idaa_sess.recovery_meetings.show__modal_edit = false;
|
||||
// $idaa_sess.recovery_meetings.show__modal_edit__event_id = false;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -280,8 +280,6 @@ $effect(() => {
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
if (browser) {
|
||||
console.log('Browser environment detected.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user