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:
parent
e55f33d48d
commit
23b53faac7
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue