mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 01:31:44 +02:00
🐛 Add missing events.
This commit is contained in:
parent
43de705308
commit
6f9b304a40
1 changed files with 13 additions and 0 deletions
|
@ -48,3 +48,16 @@
|
||||||
(watch [_ state stream]
|
(watch [_ state stream]
|
||||||
(->> (rx/of #(dissoc % :message))
|
(->> (rx/of #(dissoc % :message))
|
||||||
(rx/delay +animation-timeout+)))))
|
(rx/delay +animation-timeout+)))))
|
||||||
|
|
||||||
|
|
||||||
|
(defn error
|
||||||
|
[message & {:keys [timeout] :or {timeout 3000}}]
|
||||||
|
(show {:content message
|
||||||
|
:type :error
|
||||||
|
:timeout timeout}))
|
||||||
|
|
||||||
|
(defn info
|
||||||
|
[message & {:keys [timeout] :or {timeout 3000}}]
|
||||||
|
(show {:content message
|
||||||
|
:type :info
|
||||||
|
:timeout timeout}))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue