mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 07:56:11 +02:00
🎉 Backport questions form integration.
Among other related that need to be ported.
This commit is contained in:
parent
a2d3616171
commit
eb1bcfba83
45 changed files with 983 additions and 529 deletions
|
@ -13,6 +13,7 @@
|
|||
[app.main.data.users :as du]
|
||||
[app.main.sentry :as sentry]
|
||||
[app.main.store :as st]
|
||||
[app.util.i18n :refer [tr]]
|
||||
[app.util.router :as rt]
|
||||
[app.util.timers :as ts]
|
||||
[cljs.pprint :refer [pprint]]
|
||||
|
@ -48,7 +49,9 @@
|
|||
;; here and not in app.main.errors because of circular dependency.
|
||||
(defmethod ptk/handle-error :authentication
|
||||
[_]
|
||||
(ts/schedule (st/emitf (du/logout))))
|
||||
(let [msg (tr "errors.auth.unable-to-login")]
|
||||
(st/emit! (du/logout {:capture-redirect true}))
|
||||
(ts/schedule 500 (st/emitf (dm/warn msg)))))
|
||||
|
||||
|
||||
;; That are special case server-errors that should be treated
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue