added toast on successful shortener create

pull/3/head
TZGyn 2 years ago
parent e6b29996e7
commit 91334708c7
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -19,6 +19,7 @@
} from 'lucide-svelte'
import { goto, invalidateAll } from '$app/navigation'
import Qr from '$lib/components/QR.svelte'
import { toast } from 'svelte-sonner'
export let data: PageData
@ -41,6 +42,7 @@
isLoading = false
if (responseData.success) {
toast.success('Successfully Created Shortener')
await invalidateAll()
dialogOpen = false
}

Loading…
Cancel
Save