Work on auto reload and related single property updates. Also bug fix for saving searched sessions.

This commit is contained in:
Scott Idem
2025-09-30 12:05:55 -04:00
parent 53a03f971f
commit 99fe486842
6 changed files with 186 additions and 13 deletions

View File

@@ -914,7 +914,7 @@ export async function search__event_session(
}
await db_save_ae_obj_li__ae_obj({
db_instance: db_events,
table_name: 'presenters',
table_name: 'sessions',
obj_li: processed_obj_li,
properties_to_save: properties_to_save,
log_lvl: log_lvl,

View File

@@ -79,6 +79,7 @@ const ae_app_local_data_defaults: key_val = {
// debug_menu: false, // Flag show debug menu.
debug_mode: false, // Flag to know if we should be in debug mode and show show debug options.
edit_mode: false, // Flag to know if we should be in edit mode and show edit options.
adv_mode: false, // Flag to know if we should be in advanced mode and show advanced options.
// sys_menu: true, // Flag show system menu.
sync_local_config: true, // Flag to know if we should sync local config with the remote API server.

View File

@@ -181,7 +181,7 @@ async function handle_obj_field_patch(new_field_value: any) {
object_reload: object_reload,
field_name: field_name,
new_field_value: new_field_value,
log_lvl: 1
log_lvl: log_lvl
})
.then(function (results) {
// console.log('Field PATCH Promise', results);
@@ -235,8 +235,6 @@ async function handle_obj_field_patch(new_field_value: any) {
font-normal
transition-all duration-300 ease-in-out
relative
z-20
"
class:hidden={hide_element}
class:block={display_block}
@@ -321,6 +319,10 @@ async function handle_obj_field_patch(new_field_value: any) {
</button>
</span>
<span>
New value: {new_field_value}
</span>
<span
class="field_value
grow
@@ -348,7 +350,7 @@ async function handle_obj_field_patch(new_field_value: any) {
<option value="">-- not set --</option>
{:else if select_option_kv && Object.keys(select_option_kv).length > 0}
{#each Object.keys(select_option_kv) as option}
<option value={option}>{select_option_kv[option]}</option>
<option value={option}>{select_option_kv[option]} {option}</option>
{/each}
{:else}
<option value="">-- no list --</option>