Things look good for the IDAA BB. Need to test one last time from start to finish.

This commit is contained in:
Scott Idem
2025-07-07 16:27:12 -04:00
parent f0fae620ea
commit b675cad43d
5 changed files with 225 additions and 156 deletions

View File

@@ -172,8 +172,12 @@ onDestroy(() => {
{#if $idaa_sess.bb.edit__post_obj}
<button
type="button"
class="novi_btn btn btn-warning btn-sm preset-tonal-tertiary border border-tertiary-500
hover:preset-filled-tertiary-500 transition"
class="
novi_btn
btn btn-sm
preset-filled-warning-200-800 hover:preset-filled-success-200-800
transition
"
onclick={() => {
if ($idaa_sess.bb.obj_changed) {
if (confirm('You have unsaved changes. Are you sure you want to cancel?')) {
@@ -188,15 +192,20 @@ onDestroy(() => {
}}
title="View this BB Post"
>
View Post?
<!-- <span class="far fa-window-close m-1"></span> -->
<span class="fas fa-times m-1"></span>
Cancel Edit
</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?.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"
class="
novi_btn
btn btn-sm preset-tonal-warning
hover:preset-filled-warning-500 transition
"
onclick={() => {
// $idaa_slct.post_obj = {
// ...$lq__post_obj,
@@ -209,7 +218,7 @@ onDestroy(() => {
title="Edit this BB Post"
>
<span class="fas fa-edit m-1"></span>
Edit Post?
Edit Post
</button>
{/if}
{/if}