mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-03 13:14:34 +00:00
Merge pull request #45 from status-im/develop
Show open bounties tab regardless of sign in state
This commit is contained in:
commit
d7eb0d7f72
@ -71,10 +71,10 @@
|
||||
(let [user (rf/subscribe [:user])
|
||||
current-page (rf/subscribe [:page])]
|
||||
(fn []
|
||||
(let [tabs (apply conj [[:activity "Activity"]]
|
||||
(let [tabs (apply conj [[:activity "Activity"]
|
||||
[:bounties "Open bounties"]]
|
||||
(when @user
|
||||
[[:bounties "Open bounties"]
|
||||
[:repos "Repositories"]
|
||||
[[:repos "Repositories"]
|
||||
[:manage-payouts "Manage Payouts"]]))]
|
||||
(into [:div.ui.attached.tabular.menu.tiny.commiteth-tabs]
|
||||
(for [[page caption] tabs]
|
||||
@ -183,8 +183,11 @@
|
||||
(reset! active-user nil)))
|
||||
|
||||
(defn load-data []
|
||||
(rf/dispatch [:load-activity-feed])
|
||||
(rf/dispatch [:load-top-hunters])
|
||||
(doall
|
||||
(map rf/dispatch
|
||||
[[:load-open-bounties]
|
||||
[:load-activity-feed]
|
||||
[:load-top-hunters]]))
|
||||
(load-user))
|
||||
|
||||
(defonce timer-id (r/atom nil))
|
||||
|
@ -138,8 +138,7 @@
|
||||
{:db
|
||||
(assoc db :user (:user user-profile))
|
||||
:dispatch-n [[:load-user-repos]
|
||||
[:load-owner-bounties]
|
||||
[:load-open-bounties]]}))
|
||||
[:load-owner-bounties]]}))
|
||||
|
||||
(reg-event-db
|
||||
:clear-repos-loading
|
||||
|
Loading…
x
Reference in New Issue
Block a user