diff --git a/src/lib/components/admin/UserTable.svelte b/src/lib/components/admin/UserTable.svelte index 6bb7ad2..2be630f 100644 --- a/src/lib/components/admin/UserTable.svelte +++ b/src/lib/components/admin/UserTable.svelte @@ -1,6 +1,7 @@ @@ -132,27 +134,13 @@ > {$t('common.edit')} - {#if confirmDeleteId === user.id} -
{ - return async ({ update }) => { - confirmDeleteId = null; - await update(); - }; - }}> - - {$t('common.confirm')} - - -
- {:else} - - {/if} + @@ -164,3 +152,21 @@
{$t('admin.no_users')}
{/if} + +
{ + return async ({ update }) => { + deleteUser = null; + await update(); + }; +}} bind:this={deleteFormEl} class="hidden"> + +
+ +{#if deleteUser} + deleteFormEl.requestSubmit()} + onCancel={() => (deleteUser = null)} + /> +{/if}