File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 36
36
:oauth2/request-error
37
37
(fn [{:keys [db]} [_ provider res]]
38
38
(errorf " oauth2 provider: %s error: %s" provider res)
39
- (add -notification :error (str " request error " provider " : " (err-msg res)))
39
+ (show -notification :error (str " request error " provider " : " (err-msg res)))
40
40
{}))
41
41
42
42
(rf/reg-event-fx
43
43
:oauth2/login-error
44
44
(fn [{:keys [db]} [_ provider]]
45
45
(errorf " oauth2 provider: %s error" provider)
46
- (add -notification :danger " oauth login error (token not received)" )
46
+ (show -notification :danger " oauth login error (token not received)" )
47
47
{}))
48
48
Original file line number Diff line number Diff line change 3
3
[taoensso.timbre :refer-macros [info error]]
4
4
[reagent.core :as r]
5
5
[re-frame.core :as rf]
6
- [frontend.notifications.core :refer [add -notification]]))
6
+ [frontend.notification :refer [show -notification]]))
7
7
8
8
(defn login-ui []
9
9
(let [username (r/atom " " )
70
70
(info " login result: " result)
71
71
(rf/dispatch [:modal/close ])
72
72
(when error
73
- (add -notification :error error-message))
73
+ (show -notification :error error-message))
74
74
(when user
75
- (add -notification :info (str " Logged in as: " user)))
75
+ (show -notification :info (str " Logged in as: " user)))
76
76
(if user
77
77
(assoc db :user result)
78
78
db)))
You can’t perform that action at this time.
0 commit comments