Wrapping up for the day. Now with ability to add a person.

This commit is contained in:
Scott Idem
2024-06-24 19:45:15 -04:00
parent 384f91bbe7
commit 4ad51b8e0b
4 changed files with 273 additions and 0 deletions

View File

@@ -1322,6 +1322,40 @@ function send_sign_in_poc_email(
</button>
{/if} -->
<div class="float-right space-2 flex flex-row items-center">
{#if $ae_loc.administrator_access }
<button
type="button"
on:click={() => {
console.log('Add Person');
let person_data = {
account_id_random: $slct.account_id,
// user_id_random: user_obj.user_id_random,
given_name: 'New',
family_name: 'Presenter',
primary_email: 'test+newpres@oneskyit.com',
code: 'new_presenter',
enable: true,
}
core_func.handle_create_ae_obj__person({
api_cfg: $ae_api,
// user_id: $ae_loc.user_id,
data_kv: person_data,
log_lvl: 1,
})
// We then need to update the event_presenter with the new person_id.
}}
class="btn btn-sm variant-soft-warning hover:variant-filled-warning"
>
<span class="fas fa-plus mx-1"></span>
Add Person
</button>
{/if}
</div>
</li>
{/each}
</ul>