diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte index b0c14bd2..ae2262b5 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte @@ -49,7 +49,7 @@ $idaa_slct.archive_id = ae_acct.slct.archive_id; $: lq__archive_obj = liveQuery(async () => { console.log(`lq__archive_obj: archive_id = ${$idaa_slct?.archive_id}`); let results = await db_archives.archive - .get($idaa_slct?.archive_id); + .get($idaa_slct?.archive_id ?? ''); // null or undefined does not reset things like '' does return results; }); @@ -57,7 +57,7 @@ $: lq__archive_obj = liveQuery(async () => { $: lq__archive_content_obj_li = liveQuery(async () => { let results = await db_archives.content .where('archive_id') - .equals($idaa_slct?.archive_id) + .equals($idaa_slct?.archive_id ?? '') // null or undefined does not reset things like '' does .reverse() .sortBy('updated_on'); // .sortBy('title'); @@ -67,7 +67,7 @@ $: lq__archive_content_obj_li = liveQuery(async () => { $: lq__archive_content_obj = liveQuery(async () => { let results = await db_archives.content - .get($idaa_slct.archive_content_id); + .get($idaa_slct.archive_content_id ?? ''); // null or undefined does not reset things like '' does return results; }); @@ -180,7 +180,7 @@ if (browser) {

- {#if $ae_loc.trusted_access} - - - - {/if} + $idaa_sess.archives.show__modal_view__archive_content_id = $idaa_slct.archive_content_id; + $idaa_sess.archives.show__modal_edit__archive_content_id = false; + }} + class="btn btn-sm variant-ghost-warning hover:variant-filled-warning transition" + title={`View meeting: ${$lq__archive_content_obj?.name}`} + > + View + + + {/if} - - Edit Archive Content: - - {$lq__archive_content_obj?.name} -

+ + Edit Archive Content: + + {$lq__archive_content_obj?.name ?? 'New Archive Content'} +
@@ -248,6 +248,7 @@ if (browser) { title="{$lq__archive_content_obj?.name} - {$lq__archive_content_obj?.archive_content_id}" bind:open={$idaa_sess.archives.show__modal_view__archive_content_id} autoclose={false} + outsideclose={true} placement="top-center" size="xl" class="top-center bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-200 rounded-lg border-gray-200 dark:border-gray-700 divide-gray-200 dark:divide-gray-700 shadow-md relative flex flex-col mx-auto w-full divide-y" diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte index 6f7c0cdb..b5babbeb 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte @@ -3,13 +3,11 @@ export let log_lvl = 1; // *** Import Svelte core import { onMount } from 'svelte'; import { fade } from 'svelte/transition'; -import { Spinner } from 'flowbite-svelte'; // *** Import Aether core variables and functions import type { key_val } from '$lib/ae_stores'; import { ae_util } from '$lib/ae_utils/ae_utils'; import { core_func } from '$lib/ae_core/ae_core_functions'; -import { api } from '$lib/api'; import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores'; import { idaa_loc, idaa_sess, idaa_slct } from '$lib/ae_idaa_stores'; import { archives_func } from '$lib/ae_archives/ae_archives_functions'; @@ -101,6 +99,7 @@ if (lu_time_zone_list && lu_time_zone_list.length > 0) { }); } + onMount(() => { console.log('** Component Mounted: ** ID - Archive Content Obj - Edit'); }); @@ -400,7 +399,7 @@ async function handle_hosted_files_uploaded(hosted_file_id_li: string[], hosted_ bind:hosted_file_id_li={$idaa_slct.archive_content_obj.hosted_file_id_li} bind:hosted_file_obj_li={$idaa_slct.archive_content_obj.hosted_file_obj_li} bind:upload_complete={$idaa_slct.archive_content_obj.upload_complete} - log_lvl={2} + log_lvl={log_lvl} >
@@ -717,7 +716,7 @@ async function handle_hosted_files_uploaded(hosted_file_id_li: string[], hosted_ +
- + >

Admin Options

- +
+ Hide +
+ + +
+
+ + +
+
- +
+ Priority +
+ + +
+
+ + +
+
+ - + + - + + - {#if $ae_loc.administrator_access} - - {/if} + {#if $ae_loc.administrator_access} + +
+ Enable +
+ + +
+
+ + +
+
+
+ {/if} + -
{/if}
- + {#if $idaa_slct.archive_id} {/if} diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_obj_id_view.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_obj_id_view.svelte index 9cf6159b..a097a666 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_obj_id_view.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_obj_id_view.svelte @@ -76,6 +76,9 @@ onMount(() => { {/if} - {$lq__post_obj?.title} + {$lq__post_obj?.title ?? 'New Post'}
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 3ce89d24..aec2826d 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 @@ -198,14 +198,12 @@ async function handle_delete_post_obj({post_id, method}: key_val) { - [{$idaa_slct.post_id}] -
diff --git a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_qry.svelte b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_qry.svelte index 1b5563b6..4c805d03 100644 --- a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_qry.svelte +++ b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_qry.svelte @@ -1,7 +1,6 @@