0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 10:38:13 -05:00

🐛 Fix standard notification messages

This commit is contained in:
Andrés Moya 2020-09-24 15:39:04 +02:00
parent e55f33d48d
commit 23b53faac7
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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))