From aed38677a699ecd6158a6f9c1352a38e3b8a463a Mon Sep 17 00:00:00 2001 From: stingl Date: Fri, 19 Nov 2021 11:51:22 +0100 Subject: [PATCH] Add close functionality; --- js/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 9adbeec..ffccf16 100644 --- a/js/app.js +++ b/js/app.js @@ -358,7 +358,12 @@ const TimeTrack = { color: 'blue', buttons: [ ['', function (instance, toast) { - component.restoreTrashed(); + instance.hide({ + transitionOut: 'fadeOutUp', + onClosing: function(instance, toast, closedBy){ + component.restoreTrashed(); + } + }, toast, 'buttonName'); }, true] ], timeout: 12000