diff --git a/client/src/ui/components/BdNotifications.vue b/client/src/ui/components/BdNotifications.vue index 59d405b2..efeea8a2 100644 --- a/client/src/ui/components/BdNotifications.vue +++ b/client/src/ui/components/BdNotifications.vue @@ -18,7 +18,7 @@
{{notifications[0].text}}
-
+
{{btn.text}}
@@ -47,6 +47,16 @@ Notifications.dismiss(0); this.dismissing = false; }, 500); + }, + buttonHandler(index) { + if (!this.notifications[0].buttons[index].onClick) return; + if (this.notifications[0].buttons[index].onClick()) { + this.dismissing = true; + setTimeout(() => { + Notifications.dismiss(0); + this.dismissing = false; + }, 500); + } } } }