subscription for *pending* banner

This commit is contained in:
Rob Culliton 2018-05-07 14:06:42 -04:00
parent b2a238d7b3
commit b7159cf052
No known key found for this signature in database
GPG Key ID: 6FDEF60B3DC84D94
2 changed files with 12 additions and 1 deletions

View File

@ -304,6 +304,10 @@
(defn count-pill [n]
[:span.v-top.ml3.ph3.pv1.bg-black-05.gray.br3.f7 n])
(defn pending-banner []
(let [banner-info (rf/subscribe [:pending-revocations])]
@banner-info))
(defn salute []
(let [msg-info (rf/subscribe [:dashboard/banner-msg])]
(fn salute-render []

View File

@ -180,10 +180,17 @@
(:user-dropdown-open? db)))
(reg-sub
:three-dots-open?
:three-dots-open?
(fn [db _]
(:three-dots-open? db)))
(reg-sub
:pending-revocations
(fn [db _]
(filter #(some (conj #{} (:issue-id %))
(::db/pending-revocations db))
(vals (:owner-bounties db)))))
(reg-sub
::open-bounty-claims
(fn [db _]