Do not load user repos with timer
* load user repositories on Repositories view render (in case admin token exists) instead of with interval timer * remove unused keys from re-frame default-db
This commit is contained in:
parent
32dbc257aa
commit
d47f74693a
|
@ -8,6 +8,4 @@
|
||||||
:open-bounties []
|
:open-bounties []
|
||||||
:owner-bounties {}
|
:owner-bounties {}
|
||||||
:top-hunters []
|
:top-hunters []
|
||||||
:activity-feed []
|
:activity-feed []})
|
||||||
:gh-token nil
|
|
||||||
:gh-admin-token nil})
|
|
||||||
|
|
|
@ -96,8 +96,7 @@
|
||||||
(let [ls-data (update-local-storage-tokens store login token admin-token)]
|
(let [ls-data (update-local-storage-tokens store login token admin-token)]
|
||||||
(println "update-tokens, ls-data:" ls-data)
|
(println "update-tokens, ls-data:" ls-data)
|
||||||
{:db (merge db ls-data)
|
{:db (merge db ls-data)
|
||||||
:store ls-data
|
:store ls-data})))
|
||||||
:dispatch [:load-user-repos]})))
|
|
||||||
|
|
||||||
;; copied from plumbing.core to avoid cljsbuild warnings
|
;; copied from plumbing.core to avoid cljsbuild warnings
|
||||||
(defn dissoc-in
|
(defn dissoc-in
|
||||||
|
|
|
@ -92,4 +92,6 @@
|
||||||
[:i.warning.icon]
|
[:i.warning.icon]
|
||||||
"To set bounties for your repositories or for organizations' repositories where you have access, you need to grant Commit ETH the required permissions"]
|
"To set bounties for your repositories or for organizations' repositories where you have access, you need to grant Commit ETH the required permissions"]
|
||||||
[:a.ui.button.small {:href js/authorizeUrlAdmin} "Enable"]]
|
[:a.ui.button.small {:href js/authorizeUrlAdmin} "Enable"]]
|
||||||
[repos-page-token-ok]))))
|
(do
|
||||||
|
(rf/dispatch [:load-user-repos])
|
||||||
|
[repos-page-token-ok])))))
|
||||||
|
|
Loading…
Reference in New Issue