Post and post comments now save correctly. The viewed post does not always reflect the update though.
This commit is contained in:
@@ -201,8 +201,8 @@ export async function create_ae_obj__post(
|
||||
api_cfg,
|
||||
account_id,
|
||||
data_kv,
|
||||
params={},
|
||||
log_lvl=0
|
||||
params = {},
|
||||
log_lvl = 0
|
||||
}: {
|
||||
api_cfg: any,
|
||||
account_id: string,
|
||||
@@ -589,6 +589,8 @@ export function db_save_ae_obj_li__post(
|
||||
|
||||
account_id: obj.account_id_random,
|
||||
|
||||
external_person_id: obj.external_person_id,
|
||||
|
||||
topic_id: obj.topic_id,
|
||||
topic: obj.topic,
|
||||
topic_name: obj.topic_name,
|
||||
|
||||
@@ -269,6 +269,8 @@ export function db_save_ae_obj_li__post_comment(
|
||||
|
||||
post_id: obj.post_id_random,
|
||||
|
||||
external_person_id: obj.external_person_id,
|
||||
|
||||
// name: obj.name,
|
||||
// summary: obj.summary,
|
||||
title: obj.title,
|
||||
|
||||
@@ -8,6 +8,7 @@ type key_val = {
|
||||
* If rm_empty then it will remove/ignore fields matching. Sometimes this is needed.
|
||||
* If trim_values then it will trim string values.
|
||||
* If bool_tf_str then it will convert string values of true/false (case insensitive) to boolean values.
|
||||
* REMINDER: An unchecked checkbox will not be sent in the form data. This is a browser thing.
|
||||
* Updated 2023-12-22
|
||||
*/
|
||||
export let extract_prefixed_form_data = function extract_prefixed_form_data(
|
||||
|
||||
@@ -62,6 +62,8 @@ export interface Post_Comment {
|
||||
post_id: string;
|
||||
// post_id_random: string;
|
||||
|
||||
external_person_id?: null|string; // For IDAA this is the Novi UUID
|
||||
|
||||
// name: null|string;
|
||||
// summary?: null|string;
|
||||
title: null|string;
|
||||
|
||||
@@ -132,6 +132,9 @@ function getContent() {
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
let mouse_entered_timer: any;
|
||||
let mouse_entered_wait: number = 2500;
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
@@ -145,11 +148,19 @@ function getContent() {
|
||||
}
|
||||
}}
|
||||
on:mouseleave={() => {
|
||||
if (default_minimal) {
|
||||
show_menu = false;
|
||||
}
|
||||
mouse_entered_timer = setTimeout(() => {
|
||||
if (default_minimal) {
|
||||
show_menu = false;
|
||||
}
|
||||
}, mouse_entered_wait);
|
||||
|
||||
// if (default_minimal) {
|
||||
// show_menu = false;
|
||||
// }
|
||||
}}
|
||||
on:mouseenter={() => {
|
||||
clearTimeout(mouse_entered_timer);
|
||||
|
||||
if (default_minimal) {
|
||||
show_menu = true;
|
||||
}
|
||||
@@ -164,7 +175,7 @@ function getContent() {
|
||||
<!-- class:opacity-100={show_menu} -->
|
||||
{#if editor && show_menu}
|
||||
<div
|
||||
transition:fade={{delay: 150, duration: 750, easing: cubicOut}}
|
||||
transition:fade={{delay: 250, duration: 750, easing: cubicOut}}
|
||||
class="
|
||||
control-group button-group
|
||||
bg-gray-200
|
||||
|
||||
Reference in New Issue
Block a user