Work on the delete functions. General clean up.

This commit is contained in:
Scott Idem
2024-11-15 13:03:58 -05:00
parent 0fd06ef216
commit 547845ed62
10 changed files with 85 additions and 25 deletions

View File

@@ -80,6 +80,15 @@ $: lq_new__event_obj_li = liveQuery(async () => {
</script>
<!-- ({$lq__event_obj?.event_id ?? ''}) -->
<svelte:head>
<title>
IDAA Recovery Meetings:
{$lq__event_obj?.name ? ae_util.shorten_string({ string: $lq__event_obj?.name, max_length: 20, begin_length: 10, end_length: 4 }) : ''}
- Novi - {$ae_loc?.title}
</title>
</svelte:head>
<section
class="

View File

@@ -1237,9 +1237,6 @@ async function handle_delete_event_obj(
on:click={() => {
if (!confirm('Are you sure you want to delete this event?')) {return false;}
handle_delete_event_obj({event_id: $idaa_slct.event_id, method: 'delete'});
// $idaa_slct.event_id = null;
// $lq__event_obj = {};
}}
class="btn btn-sm variant-soft-warning"
title="Delete record permanently"
@@ -1252,9 +1249,6 @@ async function handle_delete_event_obj(
on:click={() => {
if (!confirm('Are you sure you want to disable this event?')) {return false;}
handle_delete_event_obj({event_id: $idaa_slct.event_id, method: 'disable'});
// $idaa_slct.event_id = null;
// $lq__event_obj = {};
}}
class="btn btn-sm variant-soft-warning"
title="Disable record to delete"
@@ -1267,9 +1261,6 @@ async function handle_delete_event_obj(
on:click={() => {
if (!confirm('Are you sure you want to hide this event?')) {return false;}
handle_delete_event_obj({event_id: $idaa_slct.event_id, method: 'hide'});
// $idaa_slct.event_id = null;
// $lq__event_obj = {};
}}
class="btn btn-sm variant-soft-warning"
title="Hide record to delete"