Cleaning things up before going back to making the forms functional.

This commit is contained in:
Scott Idem
2024-11-06 15:25:17 -05:00
parent d0c4ef2179
commit 14d4be848a
7 changed files with 637 additions and 159 deletions

View File

@@ -22,6 +22,7 @@ import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$
import { idaa_loc, idaa_sess, idaa_slct, idaa_trigger } from '$lib/ae_idaa_stores';
import { archives_func } from '$lib/ae_archives/ae_archives_functions';
import Archive_obj_id_edit from './ae_idaa_comp__archive_obj_id_edit.svelte';
import Archive_view from './ae_idaa_comp__archive_obj_id_view.svelte';
// import Archive_page_menu from './session_page_menu.svelte';
@@ -41,7 +42,7 @@ console.log(`ae_acct = `, ae_acct);
// For some reason data.params.archive_id (or whatever param) is not being passed to this page when loaded by a link from another page. This seems to be a bug with Svelte or SvelteKit. Hopefully fixed in a future version 5? 2024-11-06
$idaa_slct.archive_id = ae_acct.slct.archive_id;
$idaa_slct.archive_obj = ae_acct.slct.archive_obj;
// $idaa_slct.archive_obj = ae_acct.slct.archive_obj;
$: lq__archive_obj = liveQuery(async () => {
@@ -148,18 +149,18 @@ if (browser) {
</svelte:fragment>
<Comp__archive_obj_id_edit
<Archive_obj_id_edit
lq__archive_obj={lq__archive_obj}
/>
<svelte:fragment slot="footer">
<!-- <svelte:fragment slot="footer">
<div class="text-center w-full">
<button
type="button"
on:click={() => {
console.log('Close modal');
$idaa_sess.recovery_meetings.show__modal_edit = false;
$idaa_sess.recovery_meetings.show__modal_edit__archive_id = false;
}}
class="btn btn-sm variant-soft-warning hover:variant-ghost-warning"
>
@@ -167,12 +168,11 @@ if (browser) {
Close
</button>
</div>
</svelte:fragment>
</svelte:fragment> -->
</Modal>
<!-- Modal: Archive Content edit ID -->
<Modal
title="{$lq__archive_content_obj?.name} - {$lq__archive_content_obj?.id}"
@@ -215,7 +215,7 @@ if (browser) {
/>
<svelte:fragment slot="footer">
<!-- <svelte:fragment slot="footer">
<div class="text-center w-full">
<button
type="button"
@@ -229,6 +229,6 @@ if (browser) {
Close
</button>
</div>
</svelte:fragment>
</svelte:fragment> -->
</Modal>