General improvement for archive content creation. Better show/hide for enable and hide fields. Novi and iframe related updates.
This commit is contained in:
@@ -15,7 +15,7 @@ import { liveQuery } from "dexie";
|
||||
import { core_func } from '$lib/ae_core/ae_core_functions';
|
||||
import { db_posts } from "$lib/ae_posts/db_posts";
|
||||
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, idaa_trigger } from '$lib/ae_idaa_stores';
|
||||
import { idaa_loc, idaa_sess, idaa_slct, idaa_trig } from '$lib/ae_idaa_stores';
|
||||
import { posts_func } from '$lib/ae_posts/ae_posts_functions';
|
||||
|
||||
import Comp__post_obj_li from './ae_idaa_comp__post_obj_li.svelte';
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { key_val } from '$lib/ae_stores';
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
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, idaa_trigger } from '$lib/ae_idaa_stores';
|
||||
import { idaa_loc, idaa_sess, idaa_slct, idaa_trig } from '$lib/ae_idaa_stores';
|
||||
|
||||
import Comp__post_obj_id_edit from './ae_idaa_comp__post_obj_id_edit.svelte';
|
||||
import Comp__post_comment_obj_id_edit from './ae_idaa_comp__post_comment_obj_id_edit.svelte';
|
||||
@@ -22,7 +22,7 @@ if ($idaa_slct.post_id) {
|
||||
console.log(`Post ID selected: ${$idaa_slct.post_id}`);
|
||||
console.log(`Post Object selected: ${$lq__post_obj}`);
|
||||
|
||||
$idaa_trigger = 'load__post_obj';
|
||||
$idaa_trig = 'load__post_obj';
|
||||
}
|
||||
|
||||
$: if (browser && $lq__post_obj?.post_id) {
|
||||
@@ -48,9 +48,9 @@ onDestroy(() => {
|
||||
// $idaa_slct.post_comment_id = null;
|
||||
// $idaa_slct.post_comment_obj = {};
|
||||
|
||||
// $idaa_trigger = 'load__post_obj_li';
|
||||
// $idaa_trigger = 'load__post_obj';
|
||||
// $idaa_trigger = 'load__post_comment_obj_li';
|
||||
// $idaa_trig = 'load__post_obj_li';
|
||||
// $idaa_trig = 'load__post_obj';
|
||||
// $idaa_trig = 'load__post_comment_obj_li';
|
||||
|
||||
// // $idaa_sess.bb.show_post_list = false;
|
||||
// // $idaa_sess.bb.show_edit__post_id = false;
|
||||
@@ -61,8 +61,8 @@ onDestroy(() => {
|
||||
// console.log('*** handle_post_comment_obj_updated() ***');
|
||||
// console.log(event.detail);
|
||||
|
||||
// $idaa_trigger = 'load__post_obj';
|
||||
// $idaa_trigger = 'load__post_comment_obj_li';
|
||||
// $idaa_trig = 'load__post_obj';
|
||||
// $idaa_trig = 'load__post_comment_obj_li';
|
||||
|
||||
// // $idaa_sess.bb.show_post_list = false;
|
||||
// // $idaa_sess.bb.show_edit__post_id = false;
|
||||
@@ -73,9 +73,9 @@ onDestroy(() => {
|
||||
// console.log('*** handle_post_comment_obj_deleted() ***');
|
||||
// console.log(event.detail);
|
||||
|
||||
// $idaa_trigger = 'load__post_obj_li';
|
||||
// $idaa_trigger = 'load__post_obj';
|
||||
// $idaa_trigger = 'load__post_comment_obj_li';
|
||||
// $idaa_trig = 'load__post_obj_li';
|
||||
// $idaa_trig = 'load__post_obj';
|
||||
// $idaa_trig = 'load__post_comment_obj_li';
|
||||
|
||||
// // $idaa_sess.bb.show_post_list = false;
|
||||
// // $idaa_sess.bb.show_edit__post_id = false;
|
||||
|
||||
@@ -50,6 +50,7 @@ let search_submit_results: any = null;
|
||||
|
||||
{#if $ae_loc.trusted_access && !$idaa_loc.bb.qry__hidden || $idaa_loc.bb.qry__hidden == 'not_hidden'}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
$idaa_loc.bb.qry__hidden = 'all';
|
||||
$idaa_loc.bb.qry__limit = 200;
|
||||
@@ -78,6 +79,7 @@ let search_submit_results: any = null;
|
||||
</button>
|
||||
{:else if $ae_loc.trusted_access && $idaa_loc.bb.qry__hidden != 'not_hidden'}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
$idaa_loc.bb.qry__hidden = 'not_hidden';
|
||||
$idaa_loc.bb.qry__limit = 100;
|
||||
@@ -106,6 +108,7 @@ let search_submit_results: any = null;
|
||||
|
||||
{#if $ae_loc.administrator_access && !$idaa_loc.bb.qry__enabled || $idaa_loc.bb.qry__enabled == 'enabled'}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
$idaa_loc.bb.qry__hidden = 'all';
|
||||
$idaa_loc.bb.qry__enabled = 'all';
|
||||
@@ -133,6 +136,7 @@ let search_submit_results: any = null;
|
||||
</button>
|
||||
{:else if $ae_loc.administrator_access && $idaa_loc.bb.qry__enabled != 'enabled'}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
$idaa_loc.bb.qry__enabled = 'enabled';
|
||||
ae_trigger = 'load__post_obj_li';
|
||||
@@ -160,6 +164,7 @@ let search_submit_results: any = null;
|
||||
|
||||
{#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || $idaa_loc.novi_uuid}
|
||||
<button
|
||||
type="button"
|
||||
disabled={!$ae_loc.trusted_access}
|
||||
on:click={() => {
|
||||
if (!confirm('Create new post?')) {
|
||||
|
||||
Reference in New Issue
Block a user