From 23b53faac71cbe9a1dc6f655363ac72fd5aace69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Thu, 24 Sep 2020 15:39:04 +0200 Subject: [PATCH] :bug: Fix standard notification messages --- frontend/src/app/main/data/messages.cljs | 4 ++++ frontend/src/app/main/ui/messages.cljs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/messages.cljs b/frontend/src/app/main/data/messages.cljs index 51420154c1..53517d16df 100644 --- a/frontend/src/app/main/data/messages.cljs +++ b/frontend/src/app/main/data/messages.cljs @@ -66,6 +66,7 @@ ([content {:keys [timeout] :or {timeout 3000}}] (show {:content content :type :error + :position :fixed :timeout timeout}))) (defn info @@ -73,6 +74,7 @@ ([content {:keys [timeout] :or {timeout 3000}}] (show {:content content :type :info + :position :fixed :timeout timeout}))) (defn success @@ -80,6 +82,7 @@ ([content {:keys [timeout] :or {timeout 3000}}] (show {:content content :type :success + :position :fixed :timeout timeout}))) (defn warn @@ -87,6 +90,7 @@ ([content {:keys [timeout] :or {timeout 3000}}] (show {:content content :type :warning + :position :fixed :timeout timeout}))) (defn info-dialog diff --git a/frontend/src/app/main/ui/messages.cljs b/frontend/src/app/main/ui/messages.cljs index a4310941c8..e7ed09daec 100644 --- a/frontend/src/app/main/ui/messages.cljs +++ b/frontend/src/app/main/ui/messages.cljs @@ -65,7 +65,7 @@ on-close #(st/emit! dm/hide)] (when message [:& banner (assoc message - :position :floating + :position (or (:position message) :floating) :controls (if (some? (:controls message)) (:controls message) (if (some? (:timeout message))