replace alerts with notifications using DaisyUI toasts

This commit is contained in:
Michael Dausmann
2023-05-12 23:46:27 +10:00
parent c6b48f05c1
commit 0d2db65f74
7 changed files with 76 additions and 8 deletions

View File

@@ -2,6 +2,8 @@
const user = useSupabaseUser()
const supabase = useSupabaseAuthClient();
const notifyStore = useNotifyStore();
const loading = ref(false)
const email = ref('')
const password = ref('')
@@ -19,7 +21,7 @@
signUpOk.value = true;
}
} catch (error) {
alert(error)
notifyStore.notify(error, NotificationType.Error);
} finally {
loading.value = false
}