diff --git a/src/routes/idaa/(idaa)/+layout.svelte b/src/routes/idaa/(idaa)/+layout.svelte index e9c15e39..3b438026 100644 --- a/src/routes/idaa/(idaa)/+layout.svelte +++ b/src/routes/idaa/(idaa)/+layout.svelte @@ -12,9 +12,19 @@ $ae_loc.params = data.params; console.log(`+layout.svelte data:`, data); if (browser) { - $idaa_loc.novi_uuid = data.url.searchParams.get('uuid'); // data.params.uuid; - $idaa_loc.novi_email = decodeURIComponent(data.url.searchParams.get('email')); - $idaa_loc.novi_full_name = decodeURIComponent(data.url.searchParams.get('full_name')); + if (data.url.searchParams.get('uuid')) { + $idaa_loc.novi_uuid = data.url.searchParams.get('uuid'); // data.params.uuid; + } + if (data.url.searchParams.get('email')) { + $idaa_loc.novi_email = decodeURIComponent(data.url.searchParams.get('email')); + } else { + $idaa_loc.novi_email = null; + } + if (data.url.searchParams.get('full_name')) { + $idaa_loc.novi_full_name = decodeURIComponent(data.url.searchParams.get('full_name')); + } else { + $idaa_loc.novi_full_name = null; + } $idaa_loc.novi_admin_li = $ae_loc.site_cfg_json?.novi_admin_li ?? []; $idaa_loc.novi_trusted_li = $ae_loc.site_cfg_json?.novi_trusted_li ?? []; // console.log(`$idaa_loc.novi_uuid:`, $idaa_loc.novi_uuid); diff --git a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_comment_obj_id_edit.svelte b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_comment_obj_id_edit.svelte index 86c747a0..d178d967 100644 --- a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_comment_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_comment_obj_id_edit.svelte @@ -74,11 +74,12 @@ async function handle_submit_form(event: any) { post_comment_do['group'] = null; } - // Check if the enable exists and is a string - console.log(`post_comment_di.enable = ${post_comment_di.enable}`); - // if (typeof post_comment_di.enable !== 'undefined') { - post_comment_do['enable'] = !!post_comment_di.enable; - // } + // NOTE: We only want to set enable value if the input is defined. + if (typeof post_comment_di.enable !== 'undefined') { + post_comment_do.enable = post_comment_di.enable; + } + // NOTE: We want to always default to false if the input is not defined. + // post_comment_do.enable = post_comment_di.enable ?? false; // // Check if the notes_new_html exists and is a string // if (typeof $idaa_slct.post_comment_obj.notes_new_html === 'string') { @@ -338,7 +339,7 @@ async function handle_delete_post_comment_obj( {#if $ae_loc.trusted_access} +
+ >

Admin Options @@ -1147,42 +1153,98 @@ async function handle_delete_event_obj( - + +
+ Hide +
+ + +
+
+ + +
+
- +
+ Priority +
+ + +
+
+ + +
+
+
- + + - + + {#if $ae_loc.administrator_access} - + +
+ Enable +
+ + +
+
+ + +
+
+
{:else} - + {/if}