From eaf61dc01fe8239c7a99b95365af896c2885d62f Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Thu, 28 Sep 2023 16:16:03 +0200 Subject: [PATCH] Clear notification and set their duration & Fix landing on webauthn form --- resources/js_vue3/stores/notify.js | 4 ++++ resources/js_vue3/views/auth/Login.vue | 13 ++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/resources/js_vue3/stores/notify.js b/resources/js_vue3/stores/notify.js index 7ce8dc1a..376523f3 100644 --- a/resources/js_vue3/stores/notify.js +++ b/resources/js_vue3/stores/notify.js @@ -63,5 +63,9 @@ export const useNotifyStore = defineStore({ notify({ type: 'is-danger', ...notification}) }, + clear() { + notify({ clean: true }) + } + }, }) diff --git a/resources/js_vue3/views/auth/Login.vue b/resources/js_vue3/views/auth/Login.vue index 388a4953..4ccf4c6d 100644 --- a/resources/js_vue3/views/auth/Login.vue +++ b/resources/js_vue3/views/auth/Login.vue @@ -1,21 +1,15 @@