File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
contexts/shell/activity_center Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 68
68
69
69
(defn view
70
70
[]
71
- (let [notifications (rf/sub [:activity-center/notifications ])
71
+ (let [notifications (rf/sub [:activity-center/supported- notifications ])
72
72
73
73
; ; We globally control the active swipeable for all notifications
74
74
; ; because when a swipe left/right gesture initiates, the previously
Original file line number Diff line number Diff line change 9
9
(fn [activity-center]
10
10
(:notifications activity-center)))
11
11
12
+ (re-frame/reg-sub
13
+ :activity-center/supported-notifications
14
+ :<- [:activity-center/notifications ]
15
+ (fn [notifications]
16
+ (->> notifications
17
+ (filter #(types/all-supported (:type %))))))
18
+
12
19
(re-frame/reg-sub
13
20
:activity-center/unread-counts-by-type
14
21
:<- [:activity-center ]
You can’t perform that action at this time.
0 commit comments