From a0d56d0f6639265d8e252a2a8812694e67488e73 Mon Sep 17 00:00:00 2001
From: Benjamin Canac
Date: Wed, 17 Aug 2022 13:53:53 +0200
Subject: [PATCH] chore(Notifications): support actions instead of specific
undo and dismiss
---
.../components/overlays/Notification.vue | 50 ++++++-------------
src/runtime/types/toast.d.ts | 5 +-
2 files changed, 20 insertions(+), 35 deletions(-)
diff --git a/src/runtime/components/overlays/Notification.vue b/src/runtime/components/overlays/Notification.vue
index 2e7837e4..afe0af5c 100644
--- a/src/runtime/components/overlays/Notification.vue
+++ b/src/runtime/components/overlays/Notification.vue
@@ -27,22 +27,16 @@
{{ description }}
-
-
-
-
-
- Undo
-
-
- Dismiss
+
+
+ {{ action.label }}
@@ -66,6 +60,7 @@