Show open bounties tab regardless of sign in state
This commit is contained in:
parent
35df02edea
commit
a6690859cc
|
@ -71,10 +71,10 @@
|
||||||
(let [user (rf/subscribe [:user])
|
(let [user (rf/subscribe [:user])
|
||||||
current-page (rf/subscribe [:page])]
|
current-page (rf/subscribe [:page])]
|
||||||
(fn []
|
(fn []
|
||||||
(let [tabs (apply conj [[:activity "Activity"]]
|
(let [tabs (apply conj [[:activity "Activity"]
|
||||||
|
[:bounties "Open bounties"]]
|
||||||
(when @user
|
(when @user
|
||||||
[[:bounties "Open bounties"]
|
[[:repos "Repositories"]
|
||||||
[:repos "Repositories"]
|
|
||||||
[:manage-payouts "Manage Payouts"]]))]
|
[:manage-payouts "Manage Payouts"]]))]
|
||||||
(into [:div.ui.attached.tabular.menu.tiny.commiteth-tabs]
|
(into [:div.ui.attached.tabular.menu.tiny.commiteth-tabs]
|
||||||
(for [[page caption] tabs]
|
(for [[page caption] tabs]
|
||||||
|
@ -183,8 +183,11 @@
|
||||||
(reset! active-user nil)))
|
(reset! active-user nil)))
|
||||||
|
|
||||||
(defn load-data []
|
(defn load-data []
|
||||||
(rf/dispatch [:load-activity-feed])
|
(doall
|
||||||
(rf/dispatch [:load-top-hunters])
|
(map rf/dispatch
|
||||||
|
[[:load-open-bounties]
|
||||||
|
[:load-activity-feed]
|
||||||
|
[:load-top-hunters]]))
|
||||||
(load-user))
|
(load-user))
|
||||||
|
|
||||||
(defonce timer-id (r/atom nil))
|
(defonce timer-id (r/atom nil))
|
||||||
|
|
|
@ -138,8 +138,7 @@
|
||||||
{:db
|
{:db
|
||||||
(assoc db :user (:user user-profile))
|
(assoc db :user (:user user-profile))
|
||||||
:dispatch-n [[:load-user-repos]
|
:dispatch-n [[:load-user-repos]
|
||||||
[:load-owner-bounties]
|
[:load-owner-bounties]]}))
|
||||||
[:load-open-bounties]]}))
|
|
||||||
|
|
||||||
(reg-event-db
|
(reg-event-db
|
||||||
:clear-repos-loading
|
:clear-repos-loading
|
||||||
|
|
Loading…
Reference in New Issue