Bug fix for event_id being added as a URL param. Other fixes.
This commit is contained in:
@@ -28,7 +28,7 @@ import { idaa_loc, idaa_sess, idaa_slct, idaa_trig, idaa_prom } from '$lib/ae_id
|
||||
import { posts_func } from '$lib/ae_posts/ae_posts_functions';
|
||||
|
||||
import Comp__post_obj_li from './ae_idaa_comp__post_obj_li.svelte';
|
||||
import Comp__post_obj_id_view from './ae_idaa_comp__post_obj_id_view.svelte';
|
||||
// import Comp__post_obj_id_view from './ae_idaa_comp__post_obj_id_view.svelte';
|
||||
import Comp__post_options from './ae_idaa_comp__post_options.svelte';
|
||||
|
||||
|
||||
@@ -278,103 +278,3 @@ function add_activity_log(
|
||||
|
||||
|
||||
<!-- </section> -->
|
||||
|
||||
|
||||
<!-- Modal: Post (Bulletin Board) view ID -->
|
||||
<!-- title="{$lq__post_obj?.title ?? 'New Post'} - {$lq__post_obj?.id ?? 'Not Saved Yet'}" -->
|
||||
{#if 1===3}
|
||||
<Modal
|
||||
bind:open={$idaa_sess.bb.show__modal_view__post_id}
|
||||
autoclose={false}
|
||||
outsideclose={true}
|
||||
placement="top-center"
|
||||
size="lg"
|
||||
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"
|
||||
onclose={() => {
|
||||
// We want to cancel the inline edit if the modal is closed
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = false;
|
||||
}}
|
||||
>
|
||||
|
||||
{#snippet header()}
|
||||
<div class="flex flex-row items-center justify-between w-full">
|
||||
<h3 class="text-lg font-semibold">
|
||||
{#if $ae_loc.trusted_access || $lq__post_obj?.external_person_id === $idaa_loc.novi_uuid}
|
||||
<button
|
||||
onclick={() => {
|
||||
// const url = new URL(location);
|
||||
// url.searchParams.set('post_id', $lq__post_obj?.post_id_random);
|
||||
// history.pushState({}, '', url);
|
||||
|
||||
// $idaa_sess.bb.show__modal_view = false;
|
||||
if ($idaa_sess.bb.show__inline_edit__post_obj) {
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = false;
|
||||
} else {
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = true;
|
||||
}
|
||||
}}
|
||||
class="novi_btn btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition"
|
||||
title={`Edit meeting: ${$lq__post_obj?.title}`}
|
||||
>
|
||||
{#if $idaa_sess.bb.show__inline_edit__post_obj}
|
||||
<span class="fas fa-times m-1"></span> Cancel Edit
|
||||
{:else}
|
||||
<span class="fas fa-edit m-1"></span> Edit
|
||||
{/if}
|
||||
</button>
|
||||
{/if}
|
||||
<!-- {$lq__post_obj?.title ?? 'New Post'} -->
|
||||
<span class="">
|
||||
<span class="fas fa-comment-alt m-1"></span>
|
||||
{@html $lq__post_obj?.title ?? 'New Post'}
|
||||
<!-- - {$lq__post_obj?.id ?? 'Not Yet Saved'} -->
|
||||
</span>
|
||||
{#if $lq__post_obj?.topic_id}<span class="badge badge-info preset-tonal-secondary"><span class="fas fa-user-md m-1"></span> {$lq__post_obj?.topic_name}</span>{/if}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm btn-secondary absolute top-2 right-2"
|
||||
onclick={() => {
|
||||
$idaa_sess.bb.show__modal_view__post_id = false;
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = false;
|
||||
|
||||
$idaa_slct.post_id = null;
|
||||
$idaa_slct.post_obj = null;
|
||||
let message = {'post_id': $idaa_slct.post_id ?? null};
|
||||
window.parent.postMessage(message, "*");
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-times"></span>
|
||||
Close
|
||||
</button>
|
||||
{/snippet}
|
||||
|
||||
<Comp__post_obj_id_view
|
||||
lq__post_obj={lq__post_obj}
|
||||
lq__post_comment_obj_li={lq__post_comment_obj_li}
|
||||
lq__post_comment_obj={lq__post_comment_obj}
|
||||
/>
|
||||
|
||||
{#snippet footer()}
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm btn-secondary"
|
||||
onclick={() => {
|
||||
$idaa_sess.bb.show__modal_view__post_id = false;
|
||||
$idaa_sess.bb.show__inline_edit__post_obj = false;
|
||||
|
||||
$idaa_slct.post_id = null;
|
||||
$idaa_slct.post_obj = null;
|
||||
let message = {'post_id': $idaa_slct.post_id ?? null};
|
||||
window.parent.postMessage(message, "*");
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-times"></span>
|
||||
Close
|
||||
</button>
|
||||
{/snippet}
|
||||
|
||||
</Modal>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user