From 175b8c9dbab327def2e57b68e43716d52c19f28c Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 14 Dec 2021 17:54:02 +0100 Subject: [PATCH] chore(Notification): transform `ticker` and `timer` plugins to `useTimer` composable --- src/components/overlays/Notification.vue | 146 +++++++++++++---------- src/composables/useTimer.ts | 64 ++++++++++ src/index.ts | 7 +- src/plugins/ticker.client.ts | 19 --- src/plugins/timer.client.ts | 34 ------ 5 files changed, 150 insertions(+), 120 deletions(-) create mode 100644 src/composables/useTimer.ts delete mode 100644 src/plugins/ticker.client.ts delete mode 100644 src/plugins/timer.client.ts diff --git a/src/components/overlays/Notification.vue b/src/components/overlays/Notification.vue index f4d68943..b4c6a1ad 100644 --- a/src/components/overlays/Notification.vue +++ b/src/components/overlays/Notification.vue @@ -11,7 +11,7 @@
@@ -31,7 +31,7 @@ variant="white" size="xs" class="mt-2" - @click.stop="cancel" + @click.stop="onUndo" > Undo @@ -39,7 +39,7 @@