Just worki on things

This commit is contained in:
Scott Idem
2024-03-06 13:47:41 -05:00
parent e71cdab353
commit aa712284ce
4 changed files with 53 additions and 54 deletions

View File

@@ -141,6 +141,8 @@ export let ae_app_session_data_struct: key_val = {
'ds': {
'submit_status': null,
},
'ds_loaded': {
},
'hub': {
'show_xyz': null,
},

View File

@@ -11,8 +11,8 @@ import type { key_val } from '$lib/ae_stores';
export let ds_code: string;
export let ds_name: string;
export let ds_type: string = 'text';
export let for_type: string;
export let for_id: string;
export let for_type: null|string;
export let for_id: null|string;
export let store: string = 'local';
export let display: string = 'block';
@@ -24,6 +24,8 @@ export let show_edit_btn: boolean = true;
export let show_view: boolean = true;
export let show_delete_btn: boolean = false;
export let ds_loaded: boolean = false;
export let debug: boolean = false;
let ae_promises: key_val = {}; // Promise<any>;
@@ -117,6 +119,7 @@ async function load_data_store({
console.log('Something went wrong? No data store ID found.');
return false;
}
$ae_ds_loc.id = ds_results.data_store_id_random;
$ae_ds_loc.account_id = ds_results.account_id_random;
$ae_ds_loc.code = ds_results.code; // This will overwrite whatever was passed in.
@@ -143,7 +146,10 @@ async function load_data_store({
val_text = ds_results.text;
return ds_results.text;
}
ds_loaded = true;
} else {
ds_loaded = false;
ds_loading_status = '-- not found --';
}
})
@@ -662,7 +668,7 @@ async function handle_update__data_store({
</pre> -->
{#await ds_get_results}
<div class="modal-loading">
<div class="modal-loading text-xs">
<span class="fas fa-spinner fa-spin"></span>
<span class="loading-text">
Loading...