diff --git a/src/routes/idaa/(idaa)/archives/+page.svelte b/src/routes/idaa/(idaa)/archives/+page.svelte
index 6cae3c52..351062e1 100644
--- a/src/routes/idaa/(idaa)/archives/+page.svelte
+++ b/src/routes/idaa/(idaa)/archives/+page.svelte
@@ -52,15 +52,16 @@ if (browser) {
// The archive_id should not already be set while the page is loading if we are looking at this page?
// let message = {'archive_id': $idaa_slct?.archive_id ?? null};
$idaa_slct.archive_id = null;
- let message = {'archive_id': $idaa_slct.archive_id};
+ $idaa_slct.archive_content_id = null;
+ let message = {'archive_id': $idaa_slct.archive_id, 'archive_content_id': $idaa_slct.archive_content_id};
window.parent.postMessage(message, "*");
- add_activity_log(
- {
- action: 'idaa_archives_page',
- action_with: 'browser',
- }
- );
+ // add_activity_log(
+ // {
+ // action: 'idaa_archives_page',
+ // action_with: 'browser',
+ // }
+ // );
}
function add_activity_log(
diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte
index c115e289..e0768245 100644
--- a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte
+++ b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte
@@ -466,9 +466,12 @@ onDestroy(() => {
{/snippet} -->
+
+
+
diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte
index 712561c6..d52a8936 100644
--- a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte
+++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte
@@ -63,7 +63,7 @@ let ae_promises: key_val = $state({});
{#if $idaa_sess.archives.show_list__archive_content_li_group == idaa_archive_content_obj.group}
diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__modal_media_player.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__modal_media_player.svelte
index 59891e9e..bd651bc2 100644
--- a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__modal_media_player.svelte
+++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__modal_media_player.svelte
@@ -2,7 +2,7 @@
/** @type {import('./$types').PageData} */
// *** Import Svelte specific
-// import { onDestroy, onMount } from 'svelte';
+import { onDestroy, onMount } from 'svelte';
// import { browser } from '$app/environment';
// *** Import other supporting libraries
@@ -25,6 +25,12 @@ if (log_lvl) {
console.log(`lq__archive_content_obj:`, lq__archive_content_obj);
}
+onDestroy(() => {
+ // This does not always seem to be triggered???
+ $idaa_slct.archive_content_id = null;
+ let message = {'archive_content_id': null};
+ window.parent.postMessage(message, "*");
+});
@@ -56,6 +62,10 @@ if (log_lvl) {
class="btn btn-sm btn-secondary absolute top-2 right-2"
onclick={() => {
$idaa_sess.archives.show__modal_view__archive_content_id = false;
+
+ $idaa_slct.archive_content_id = null;
+ let message = {'archive_content_id': null};
+ window.parent.postMessage(message, "*");
}}
>
@@ -73,6 +83,10 @@ if (log_lvl) {
class="btn btn-sm btn-secondary"
onclick={() => {
$idaa_sess.archives.show__modal_view__archive_content_id = false;
+
+ $idaa_slct.archive_content_id = null;
+ let message = {'archive_content_id': null};
+ window.parent.postMessage(message, "*");
}}
>
diff --git a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte
index ff3082ae..2e779549 100644
--- a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte
+++ b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte
@@ -48,6 +48,7 @@ if (browser) {
}
if ($idaa_loc.bb.edit__post_obj) {
+ obj_changed = true; // This is an odd workaround to make new posts saveable.
$idaa_sess.bb.edit__post_obj = $idaa_loc.bb.edit__post_obj;
$idaa_loc.bb.edit__post_obj = false;
}
diff --git a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_options.svelte b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_options.svelte
index 4467bc71..93e6d927 100644
--- a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_options.svelte
+++ b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_options.svelte
@@ -141,6 +141,8 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
return false;
}
+ $idaa_slct.post_obj = {};
+
let data_kv = {
external_person_id: $idaa_loc.novi_uuid,
title: 'Change Me',
@@ -161,6 +163,9 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
console.log('New post created:', results);
}
$idaa_slct.post_id = results?.post_id_random;
+ $idaa_slct.post_obj = {
+ ...results
+ };
$idaa_sess.bb.edit__post_obj = $idaa_slct.post_id;
$idaa_loc.bb.edit__post_obj = $idaa_slct.post_id;
// if (!$idaa_loc.bb.edit_kv) {
diff --git a/src/routes/idaa/(idaa)/recovery_meetings/+page.svelte b/src/routes/idaa/(idaa)/recovery_meetings/+page.svelte
index c0d1c929..8761d9e9 100644
--- a/src/routes/idaa/(idaa)/recovery_meetings/+page.svelte
+++ b/src/routes/idaa/(idaa)/recovery_meetings/+page.svelte
@@ -44,6 +44,10 @@ import Comp__event_obj_li_wrapper from './ae_idaa_comp__event_obj_li_wrapper.sve
// }
if (browser) {
+ $idaa_slct.event_id = null; // Just in case
+ let message = {'event_id': null};
+ window.parent.postMessage(message, "*");
+
$idaa_trig.event_li_qry = true;
// $idaa_trig = 'load__event_obj_li';
}