diff --git a/src/routes/(app)/admin/+page.svelte b/src/routes/(app)/admin/+page.svelte index 00a2c5fb5..800be14c9 100644 --- a/src/routes/(app)/admin/+page.svelte +++ b/src/routes/(app)/admin/+page.svelte @@ -18,6 +18,7 @@ import Tooltip from '$lib/components/common/Tooltip.svelte'; import UserChatsModal from '$lib/components/admin/UserChatsModal.svelte'; import AddUserModal from '$lib/components/admin/AddUserModal.svelte'; + import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte'; const i18n = getContext('i18n'); @@ -30,6 +31,7 @@ let page = 1; + let showDeleteConfirmDialog = false; let showAddUserModal = false; let showUserChatsModal = false; @@ -77,6 +79,13 @@ }); + { + deleteUserHandler(selectedUser.id); + }} +/> + {#key selectedUser} { - deleteUserHandler(user.id); + showDeleteConfirmDialog = true; + selectedUser = user; }} >