mirror of
https://github.com/penpot/penpot.git
synced 2026-03-09 19:56:05 +00:00
🐛 Fix standard notification messages
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user