From 95bfd98b43fcefb675bb04001d9c229954a7119b Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 14 Jul 2020 12:24:05 +0800 Subject: [PATCH] update notification generator --- ui/components/notification/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/components/notification/index.js b/ui/components/notification/index.js index 18b402d7..851df28f 100644 --- a/ui/components/notification/index.js +++ b/ui/components/notification/index.js @@ -22,7 +22,7 @@ export default class Notification { } static show({ - avatar, title, message, type = 'info', duration = 3000, + avatar, title, message, type, duration = 3000, actionButtons = [], }) { if (duration && lastNotification) { @@ -33,9 +33,8 @@ export default class Notification { if (title) $(tpl`${title} `).appendTo($dom); $(tpl`${message}`).appendTo($dom); actionButtons.forEach((button) => { - $(tpl``).appendTo($dom); + $(tpl``).appendTo($dom); }); - console.log($dom); const $n = $dom .css('z-index', zIndexManager.getNext()) .appendTo('body');