Wrapping up for the day. Now with ability to add a person.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user