Reset some message timeout defaults.

This commit is contained in:
Andrey Antukh 2021-02-04 14:19:43 +01:00 committed by Hirunatan
parent 8566fe4ac1
commit 04670bb5f2
2 changed files with 5 additions and 7 deletions

View file

@ -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

View file

@ -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")