This commit is contained in:
Scott Idem
2024-04-03 16:28:11 -04:00
parent ae1764579e
commit 9c85914b9f
4 changed files with 43 additions and 12 deletions

View File

@@ -236,7 +236,7 @@ async function handle_update_ae_obj_id_crud(
object_id: string,
field_name: string,
new_field_value: any,
params: key_val,
params: any|key_val,
try_cache: boolean,
log_lvl: number
}) {

View File

@@ -4,7 +4,7 @@ import { createEventDispatcher, onMount } from 'svelte';
// *** Import Aether core variables and functions
import type { key_val } from '$lib/ae_stores';
import { api } from '$lib/api';
// import { api } from '$lib/api';
import { core_func } from '$lib/ae_core_functions';
// import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
@@ -34,10 +34,11 @@ export let hide_edit_btn = false;
export let outline_element = false;
export let show_crud = false;
export let btn_label = '<span class="fas fa-check"></span> Save'; // PATCH
export let show_field_name = true;
export let show_original_value = true;
export let trim_string = false;
export let remove_breaks = false;
// export let show_field_name = true;
// export let show_original_value = true;
// export let trim_string = false;
// export let remove_breaks = false;
export let class_li: string = '';
@@ -94,6 +95,9 @@ async function handle_obj_field_patch(new_field_value: any) {
object_id: object_id,
field_name: field_name,
new_field_value: new_field_value,
params: {},
try_cache: false,
log_lvl: 0
})
.then(function (results) {
console.log('PATCH Promise', results);