Not sure... I need to get to a good point tomorrow.

This commit is contained in:
Scott Idem
2025-07-01 16:58:25 -04:00
parent a691e7d22d
commit 50deb79f6b
3 changed files with 71 additions and 59 deletions

View File

@@ -21,6 +21,7 @@ import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$
import { idaa_loc, idaa_sess, idaa_slct, idaa_trig, idaa_prom } from '$lib/ae_idaa_stores';
import { posts_func } from '$lib/ae_posts/ae_posts_functions';
import Comp__post_obj_id_edit from '.././ae_idaa_comp__post_obj_id_edit.svelte';
import Comp__post_obj_id_view from '.././ae_idaa_comp__post_obj_id_view.svelte';
// *** Quickly pull out data from parent(s)
@@ -171,12 +172,13 @@ onDestroy(() => {
</button>
{:else}
<!-- This checks if the currently logged in Novi user has a matching UUID or email address. -->
{#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || $lq__post_obj?.external_person_id === $idaa_loc.novi_uuid || $lq__post_obj?.contact_li_json[0].email === $idaa_loc.novi_email}
{#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || $lq__post_obj?.external_person_id === $idaa_loc.novi_uuid || $lq__post_obj?.email === $idaa_loc.novi_email}
<button
type="button"
class="novi_btn btn btn-warning btn-sm preset-tonal-warning border border-warning-500
hover:preset-filled-warning-500 transition"
onclick={() => {
$idaa_slct.post_obj = $lq__post_obj;
$idaa_sess.bb.edit__post_id = $idaa_slct.post_id;
if (log_lvl) {
console.log(`Toggle edit__post_id: ${$idaa_sess.bb.edit__post_id}`);
@@ -194,12 +196,11 @@ onDestroy(() => {
{#if $idaa_sess.bb.edit__post_id}
<!-- <Comp__post_obj_id_edit
<!-- lq__post_comment_obj_li={lq__post_comment_obj_li} -->
<!-- lq__post_comment_obj={lq__post_comment_obj} -->
<Comp__post_obj_id_edit
lq__post_obj={lq__post_obj}
lq__post_comment_obj_li={lq__post_comment_obj_li}
lq__post_comment_obj={lq__post_comment_obj}
/> -->
EDIT GOES HERE?
/>
{:else}
<Comp__post_obj_id_view
lq__post_obj={lq__post_obj}