diff --git a/src/lib/ae_posts/ae_posts__post.ts b/src/lib/ae_posts/ae_posts__post.ts index 4e1ade2f..50448abc 100644 --- a/src/lib/ae_posts/ae_posts__post.ts +++ b/src/lib/ae_posts/ae_posts__post.ts @@ -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, diff --git a/src/lib/ae_posts/ae_posts__post_comment.ts b/src/lib/ae_posts/ae_posts__post_comment.ts index 9033556a..f56976a8 100644 --- a/src/lib/ae_posts/ae_posts__post_comment.ts +++ b/src/lib/ae_posts/ae_posts__post_comment.ts @@ -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, diff --git a/src/lib/ae_utils/ae_utils__extract_prefixed_form_data.ts b/src/lib/ae_utils/ae_utils__extract_prefixed_form_data.ts index fa463cfd..0627b35e 100644 --- a/src/lib/ae_utils/ae_utils__extract_prefixed_form_data.ts +++ b/src/lib/ae_utils/ae_utils__extract_prefixed_form_data.ts @@ -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( diff --git a/src/lib/db_posts.ts b/src/lib/db_posts.ts index 0ad37bca..944e1790 100644 --- a/src/lib/db_posts.ts +++ b/src/lib/db_posts.ts @@ -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; diff --git a/src/lib/element_tiptap_editor.svelte b/src/lib/element_tiptap_editor.svelte index fb79d30f..71f35862 100644 --- a/src/lib/element_tiptap_editor.svelte +++ b/src/lib/element_tiptap_editor.svelte @@ -132,6 +132,9 @@ function getContent() { } return ''; } + +let mouse_entered_timer: any; +let mouse_entered_wait: number = 2500; @@ -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() { {#if editor && show_menu}