From 1a4ad3a4b7c6608a85521a4181f48cd3a498ac47 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 16 Aug 2022 11:50:34 +0800 Subject: [PATCH] fix: notification when saving graph --- src/main/frontend/handler/events.cljs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/frontend/handler/events.cljs b/src/main/frontend/handler/events.cljs index 1858b5c6b6..27159e01c1 100644 --- a/src/main/frontend/handler/events.cljs +++ b/src/main/frontend/handler/events.cljs @@ -134,9 +134,11 @@ {:before #(notification/show! (ui/loading (t :graph/save)) :warning) - :on-success #(notification/show! - (ui/loading (t :graph/save-success)) - :warning) + :on-success #(do + (notification/clear-all!) + (notification/show! + (t :graph/save-success) + :success)) :on-error #(notification/show! (t :graph/save-error) :error)}))