Minor changes
This commit is contained in:
@@ -9,7 +9,10 @@ let log_lvl: number = 0;
|
||||
|
||||
$ae_loc.url_origin = data.url.origin;
|
||||
$ae_loc.params = data.params;
|
||||
console.log(`+layout.svelte data:`, data);
|
||||
|
||||
if (log_lvl > 1) {
|
||||
console.log(`+layout.svelte data:`, data);
|
||||
}
|
||||
|
||||
if (browser) {
|
||||
if (data.url.searchParams.get('uuid')) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts">
|
||||
/** @type {import('./$types').LayoutData} */
|
||||
let log_lvl: number = 0;
|
||||
if (log_lvl) {
|
||||
console.log(`ae_idaa_archives +layout.svelte data:`, data);
|
||||
if (log_lvl > 1) {
|
||||
console.log(`ae_idaa_archives +layout.svelte`);
|
||||
}
|
||||
|
||||
// *** Import Aether specific variables and functions
|
||||
|
||||
@@ -497,6 +497,10 @@ async function handle_submit_form(event: any) {
|
||||
disable_submit_btn = false;
|
||||
$idaa_sess.recovery_meetings.show__modal_edit = false;
|
||||
$idaa_sess.recovery_meetings.show__modal_view = true;
|
||||
|
||||
// if (!$ae_loc.administrator_access && $ae_loc.site_cfg_json?.recovery_mtg_send_staff_update_email) {
|
||||
// send_staff_notification_email();
|
||||
// }
|
||||
});
|
||||
|
||||
log_lvl = 0;
|
||||
@@ -542,6 +546,52 @@ async function handle_delete_event_obj(
|
||||
|
||||
return prom_api__event_obj;
|
||||
}
|
||||
|
||||
|
||||
// Updated 2025-02-07
|
||||
function send_staff_notification_email() {
|
||||
if (log_lvl) {
|
||||
console.log(`*** send_staff_notification_email() *** Event ID: ${$idaa_slct.event_id}`);
|
||||
}
|
||||
|
||||
let link_base_url = $ae_loc.site_cfg_json.novi_meetings_base_url ?? `${$ae_loc.url_origin}/idaa/recovery_meetings`;
|
||||
|
||||
let subject = `IDAA Recovery Meeting: ${$idaa_slct.event_obj.name} (ID: ${$idaa_slct.event_id})`;
|
||||
|
||||
let body_html = `
|
||||
<div>
|
||||
<p>A recovery meeting has been created or updated named "${$idaa_slct.event_obj.name}".</p>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
IDAA Recovery Meeting ID: ${$idaa_slct.event_id}<br>
|
||||
<p>Use this link to view the meeting.<br>
|
||||
Copy and paste link: <a href="${link_base_url}?event_id=${$idaa_slct.event_id}">${link_base_url}?event_id=${$idaa_slct.event_id}</a></p>
|
||||
</div>`;
|
||||
|
||||
api.send_email({
|
||||
api_cfg: $ae_api,
|
||||
from_email: $ae_loc.site_cfg_json?.noreply_email ?? 'noreply+recmtg@oneskyit.com',
|
||||
// from_email: 'noreply+recmtg@oneskyit.com',
|
||||
from_name: $ae_loc.site_cfg_json?.noreply_name ?? 'IDAA Rec Mtg NoReply',
|
||||
to_email: $ae_loc.site_cfg_json?.admin_email ?? 'admin+recmtg@oneskyit.com',
|
||||
// to_email: 'test+recmtg@oneskyit.com', // 'scott+recmtg@oneskyit.com'
|
||||
to_name: $ae_loc.site_cfg_json?.admin_name ?? 'IDAA Recovery Meeting Admin',
|
||||
subject: subject,
|
||||
body_html: body_html,
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
<div>
|
||||
Poster's Novi ID: ${$idaa_slct.event_obj.external_person_id ?? '-- not set --'}<br>
|
||||
Poster's Name: ${$idaa_slct.event_obj.full_name ?? '-- not set --'}<br>
|
||||
Poster's Email: ${$idaa_slct.event_obj.email ?? '-- not set --'}
|
||||
</div>
|
||||
*/
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user