Skip to content

Commit

Permalink
notify
Browse files Browse the repository at this point in the history
  • Loading branch information
dadukhankevin committed Jul 20, 2023
1 parent 1dcf09f commit 21c6aaa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/routes/(authenticated)/user/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@
import type { PageData } from './$types';
import { TrashIcon } from '$lib/icons';
import {onMount} from 'svelte';
import {DialogResponse} from '$lib/components/modals';
export let data: PageData;
$: user = data?.user;
$: userid = user?.id;
let deleteModal: DeleteUserModal;
async function openDeleteModal(): Promise<void> {
await deleteModal.open(userid);
notifyWarning($t('account_settings.delete_success'))
let {response} = await deleteModal.open(userid);
if (response == DialogResponse.Submit){
notifyWarning($t('account_settings.delete_success'))
}
await goto('/logout');
}
const formSchema = z.object({
Expand Down

0 comments on commit 21c6aaa

Please sign in to comment.