ui(recovery_meetings): update meeting editor and search components

This commit is contained in:
Scott Idem
2026-02-12 15:07:37 -05:00
parent 4266bef352
commit 64be14249c
2 changed files with 28 additions and 14 deletions

View File

@@ -685,15 +685,22 @@
$idaa_sess.recovery_meetings.show__modal_edit = false; $idaa_sess.recovery_meetings.show__modal_edit = false;
$idaa_sess.recovery_meetings.show__modal_view = true; $idaa_sess.recovery_meetings.show__modal_view = true;
log_lvl = 1;
if (log_lvl) {
console.log(
`Check if we should send staff update email...`, $ae_loc.site_cfg_json?.recovery_mtg_send_staff_new_email
);
}
if ( if (
!$ae_loc.administrator_access && // !$ae_loc.administrator_access &&
$ae_loc.site_cfg_json?.recovery_mtg_send_staff_new_email $ae_loc.site_cfg_json?.recovery_mtg_send_staff_new_email
) { ) {
send_staff_notification_email(); send_staff_notification_email();
} }
}); });
log_lvl = 0; // log_lvl = 0;
return prom_api__event_obj; return prom_api__event_obj;
} else { } else {
@@ -724,16 +731,25 @@
$idaa_sess.recovery_meetings.show__modal_edit = false; $idaa_sess.recovery_meetings.show__modal_edit = false;
$idaa_sess.recovery_meetings.show__modal_view = true; $idaa_sess.recovery_meetings.show__modal_view = true;
if ( log_lvl = 1;
!$ae_loc.administrator_access && if (log_lvl) {
$ae_loc.site_cfg_json console.log(
?.recovery_mtg_send_staff_update_email `Check if we should send staff update email...`, $ae_loc.site_cfg_json?.recovery_mtg_send_staff_update_email
) { );
send_staff_notification_email();
} }
// if (
// // !$ae_loc.administrator_access &&
// $ae_loc.site_cfg_json
// ?.recovery_mtg_send_staff_update_email
// ) {
// send_staff_notification_email();
// }
send_staff_notification_email();
}); });
log_lvl = 0; // log_lvl = 0;
return prom_api__event_obj; return prom_api__event_obj;
} }
@@ -783,7 +799,7 @@
function send_staff_notification_email() { function send_staff_notification_email() {
if (log_lvl) { if (log_lvl) {
console.log( console.log(
`*** send_staff_notification_email() *** Event ID: ${$idaa_slct.event_id}` `*** send_staff_notification_email() *** To: ${$ae_loc.site_cfg_json?.admin_email} From: ${$ae_loc.site_cfg_json?.noreply_email} Subject: IDAA Recovery Meeting: ${$idaa_slct.event_obj.name} (ID: ${$idaa_slct.event_id})`
); );
} }
@@ -824,7 +840,8 @@
$ae_loc.site_cfg_json?.admin_name ?? $ae_loc.site_cfg_json?.admin_name ??
'IDAA Recovery Meeting Admin', 'IDAA Recovery Meeting Admin',
subject: subject, subject: subject,
body_html: body_html body_html: body_html,
log_lvl: log_lvl
// test: true, // test: true,
}); });
} }

View File

@@ -154,9 +154,6 @@
id="meeting_qry__fulltext_str" id="meeting_qry__fulltext_str"
name="qry__fulltext_str" name="qry__fulltext_str"
bind:value={$idaa_loc.recovery_meetings.qry__fulltext_str} bind:value={$idaa_loc.recovery_meetings.qry__fulltext_str}
onkeyup={() => {
// Reactive effect in +page handles this debounced
}}
autofocus autofocus
style="width: 50%;" style="width: 50%;"
class=" class="