mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 23:56:11 +02:00
✨ Reset some message timeout defaults.
This commit is contained in:
parent
8566fe4ac1
commit
04670bb5f2
2 changed files with 5 additions and 7 deletions
|
@ -225,8 +225,7 @@
|
||||||
(ts/schedule
|
(ts/schedule
|
||||||
(st/emitf
|
(st/emitf
|
||||||
(dm/show {:content "Unexpected validation error (server side)."
|
(dm/show {:content "Unexpected validation error (server side)."
|
||||||
:type :error
|
:type :error})))
|
||||||
:timeout 3000})))
|
|
||||||
|
|
||||||
;; Print to the console some debug info.
|
;; Print to the console some debug info.
|
||||||
(js/console.group "Validation Error")
|
(js/console.group "Validation Error")
|
||||||
|
@ -245,8 +244,7 @@
|
||||||
[{:keys [data stack message context] :as error}]
|
[{:keys [data stack message context] :as error}]
|
||||||
(ts/schedule
|
(ts/schedule
|
||||||
(st/emitf (dm/show {:content "Internal error: assertion."
|
(st/emitf (dm/show {:content "Internal error: assertion."
|
||||||
:type :error
|
:type :error})))
|
||||||
:timeout 3000})))
|
|
||||||
|
|
||||||
;; Print to the console some debugging info
|
;; Print to the console some debugging info
|
||||||
(js/console.group message)
|
(js/console.group message)
|
||||||
|
@ -269,8 +267,8 @@
|
||||||
(ts/schedule
|
(ts/schedule
|
||||||
(st/emitf (dm/show
|
(st/emitf (dm/show
|
||||||
{:content "Something wrong has happened (on backend)."
|
{:content "Something wrong has happened (on backend)."
|
||||||
:type :error
|
:type :error})))
|
||||||
:timeout 3000})))
|
|
||||||
(js/console.group "Internal Server Error:")
|
(js/console.group "Internal Server Error:")
|
||||||
(js/console.error "hint:" (or (:hint data) (:message data)))
|
(js/console.error "hint:" (or (:hint data) (:message data)))
|
||||||
(js/console.info
|
(js/console.info
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
(wapi/write-to-clipboard link)
|
(wapi/write-to-clipboard link)
|
||||||
(st/emit! (dm/show {:type :info
|
(st/emit! (dm/show {:type :info
|
||||||
:content "Link copied successfuly!"
|
:content "Link copied successfuly!"
|
||||||
:timeout 2000})))]
|
:timeout 3000})))]
|
||||||
[:*
|
[:*
|
||||||
[:span.btn-primary.btn-small
|
[:span.btn-primary.btn-small
|
||||||
{:alt (t locale "viewer.header.share.title")
|
{:alt (t locale "viewer.header.share.title")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue