diff --git a/src/routes/events_pres_mgmt/session/[slug]/+page.svelte b/src/routes/events_pres_mgmt/session/[slug]/+page.svelte index a205b120..4c689254 100644 --- a/src/routes/events_pres_mgmt/session/[slug]/+page.svelte +++ b/src/routes/events_pres_mgmt/session/[slug]/+page.svelte @@ -40,6 +40,8 @@ $events_slct.event_id = ae_acct.slct.event_id; $events_slct.event_obj = ae_acct.slct.event_obj; $events_slct.event_session_id = ae_acct.slct.event_session_id; $events_slct.event_session_obj = ae_acct.slct.event_session_obj; +$events_slct.event_presentation_id = null; +$events_slct.event_presentation_obj = null; $events_slct.event_presentation_obj_li = ae_acct.slct.event_presentation_obj_li; // $events_slct.event_file_obj_li = ae_acct.slct.event_file_obj_li; @@ -837,16 +839,106 @@ function send_sign_in_poc_email(
  • - {#if $ae_loc.trusted_access || $events_loc.auth__kv.presentation[event_presentation_obj.event_presentation_id_random]} + {#if event_presentation_obj && ($ae_loc.trusted_access || $events_loc.auth__kv.presentation[event_presentation_obj.event_presentation_id_random])} + + {#if $events_slct.event_presentation_id == event_presentation_obj.event_presentation_id_random && ae_tmp[$events_slct.event_presentation_id]?.show__edit_presentation_name} + + {:else} + + {/if} + + {#if $events_slct.event_presentation_id == event_presentation_obj.event_presentation_id_random && ae_tmp[$events_slct.event_presentation_id]?.show__edit_presentation_name && $events_slct.event_presentation_obj} + + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.handle_load_ae_obj_id__event_presentation({api_cfg: $ae_api, event_presentation_id: $events_slct.event_presentation_obj.event_presentation_id_random, log_lvl: 1}) + .then(function (load_results) { + // We need to force reload the Indexed DB - Dexie.js? + // Sometimes the changes are not seen. The file disappears when the Save button is pressed. + + // Maybe reload page? + // window.location.reload(); + }) + .finally(function () { + ae_tmp[$events_slct.event_presentation_id].show__edit_presentation_name = false; + + // Careful with the trigger_patch. It will keep firing if not reset. + ae_triggers.update_event_presentation_name = false; + }); + }} + > + + + + + {/if} + + + + {/if}

    diff --git a/src/routes/events_pres_mgmt/session/[slug]/presenter_view.svelte b/src/routes/events_pres_mgmt/session/[slug]/presenter_view.svelte index 5116ee40..c96dfddb 100644 --- a/src/routes/events_pres_mgmt/session/[slug]/presenter_view.svelte +++ b/src/routes/events_pres_mgmt/session/[slug]/presenter_view.svelte @@ -308,7 +308,12 @@ async function handle_delete__event_file({event_file_id}) { {#if $lq__event_presenter_obj}

    Presenter Details for:
    - {$events_slct.presenter_obj.full_name} ({$events_slct.presenter_obj.email}) + + {$events_slct.presenter_obj.full_name} + + + ({$events_slct.presenter_obj.email}) + {#if $ae_loc.trusted_access} @@ -329,67 +334,6 @@ async function handle_delete__event_file({event_file_id}) {

    Title: "{$events_slct.presentation_obj.name}"

    - - { - console.log(`ae_crud_updated:`, e.detail); - - events_func.handle_load_ae_obj_id__event_presentation({api_cfg: $ae_api, event_presentation_id: $events_slct.presentation_obj.event_presentation_id_random, log_lvl: 1}) - .then(function (load_results) { - // We need to force reload the Indexed DB - Dexie.js? - // Sometimes the changes are not seen. The file disappears when the Save button is pressed. - - // Maybe reload page? - // window.location.reload(); - }) - .finally(function () { - // ae_tmp.show__file_li = false; - // Careful with the trigger_patch. It will keep firing if not reset. - ae_triggers.update_event_presentation_name = false; - }); - }} - > - - - - - - - - - -

    Presenter: