update routes

This commit is contained in:
Martin Klepsch 2018-04-05 11:03:50 +02:00 committed by Tetiana Churikova
parent 339002f8df
commit 936d461f3c
2 changed files with 7 additions and 9 deletions

View File

@ -80,7 +80,7 @@
(let [tabs [[:bounties (str (when-not @user "Open ") "Bounties")] (let [tabs [[:bounties (str (when-not @user "Open ") "Bounties")]
[:activity "Activity"] [:activity "Activity"]
(when (seq @owner-bounties) (when (seq @owner-bounties)
[:manage-payouts (str (when-not mobile? "Manage ") "Payouts")]) [:dashboard "Dashboard"])
(when (:status-team-member? @user) (when (:status-team-member? @user)
[:usage-metrics "Usage metrics"])]] [:usage-metrics "Usage metrics"])]]
(into [:div.ui.attached.tabular.menu.tiny] (into [:div.ui.attached.tabular.menu.tiny]
@ -204,7 +204,9 @@
:activity [activity-page] :activity [activity-page]
:bounties [bounties-page] :bounties [bounties-page]
:repos [repos-page] :repos [repos-page]
:manage-payouts [manage-payouts-page] (:dashboard
:issuer-dashboard/to-confirm
:issuer-dashboard/to-merge) [manage-payouts-page]
:settings [update-address-page] :settings [update-address-page]
:usage-metrics [usage-metrics-page])]] :usage-metrics [usage-metrics-page])]]
(when (show-top-hunters?) (when (show-top-hunters?)

View File

@ -6,13 +6,9 @@
(bide/router [["/" :bounties] (bide/router [["/" :bounties]
["/activity" :activity] ["/activity" :activity]
["/repos" :repos] ["/repos" :repos]
["/manage-payouts" :manage-payouts] ["/dashboard" :dashboard]
["/manage-payouts/open" :issuer-dashboard/open] ["/dashboard/to-confirm" :issuer-dashboard/to-confirm]
["/manage-payouts/funded" :issuer-dashboard/funded] ["/dashboard/to-merge" :issuer-dashboard/to-merge]
["/manage-payouts/claimed" :issuer-dashboard/claimed]
["/manage-payouts/merged" :issuer-dashboard/merged]
["/manage-payouts/pending" :issuer-dashboard/pending-maintainer-confirmation]
["/manage-payouts/paid" :issuer-dashboard/paid]
["/settings" :settings] ["/settings" :settings]
["/usage-metrics" :usage-metrics]])) ["/usage-metrics" :usage-metrics]]))