mirror of
https://github.com/penpot/penpot.git
synced 2025-02-15 11:38:24 -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}}]
|
([content {:keys [timeout] :or {timeout 3000}}]
|
||||||
(show {:content content
|
(show {:content content
|
||||||
:type :error
|
:type :error
|
||||||
|
:position :fixed
|
||||||
:timeout timeout})))
|
:timeout timeout})))
|
||||||
|
|
||||||
(defn info
|
(defn info
|
||||||
|
@ -73,6 +74,7 @@
|
||||||
([content {:keys [timeout] :or {timeout 3000}}]
|
([content {:keys [timeout] :or {timeout 3000}}]
|
||||||
(show {:content content
|
(show {:content content
|
||||||
:type :info
|
:type :info
|
||||||
|
:position :fixed
|
||||||
:timeout timeout})))
|
:timeout timeout})))
|
||||||
|
|
||||||
(defn success
|
(defn success
|
||||||
|
@ -80,6 +82,7 @@
|
||||||
([content {:keys [timeout] :or {timeout 3000}}]
|
([content {:keys [timeout] :or {timeout 3000}}]
|
||||||
(show {:content content
|
(show {:content content
|
||||||
:type :success
|
:type :success
|
||||||
|
:position :fixed
|
||||||
:timeout timeout})))
|
:timeout timeout})))
|
||||||
|
|
||||||
(defn warn
|
(defn warn
|
||||||
|
@ -87,6 +90,7 @@
|
||||||
([content {:keys [timeout] :or {timeout 3000}}]
|
([content {:keys [timeout] :or {timeout 3000}}]
|
||||||
(show {:content content
|
(show {:content content
|
||||||
:type :warning
|
:type :warning
|
||||||
|
:position :fixed
|
||||||
:timeout timeout})))
|
:timeout timeout})))
|
||||||
|
|
||||||
(defn info-dialog
|
(defn info-dialog
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
on-close #(st/emit! dm/hide)]
|
on-close #(st/emit! dm/hide)]
|
||||||
(when message
|
(when message
|
||||||
[:& banner (assoc message
|
[:& banner (assoc message
|
||||||
:position :floating
|
:position (or (:position message) :floating)
|
||||||
:controls (if (some? (:controls message))
|
:controls (if (some? (:controls message))
|
||||||
(:controls message)
|
(:controls message)
|
||||||
(if (some? (:timeout message))
|
(if (some? (:timeout message))
|
||||||
|
|
Loading…
Add table
Reference in a new issue