mirror of https://github.com/logseq/logseq
style(token): fix code styles
parent
ac7603b6dd
commit
6de9b72405
|
@ -199,9 +199,9 @@
|
|||
path))
|
||||
[:div
|
||||
(ui/textarea
|
||||
{:placeholder "Commit message (optional)"
|
||||
:on-change (fn [e]
|
||||
(reset! commit-message (util/evalue e)))})
|
||||
{:placeholder "Commit message (optional)"
|
||||
:on-change (fn [e]
|
||||
(reset! commit-message (util/evalue e)))})
|
||||
(if pushing?
|
||||
[:span (ui/loading "Pushing")]
|
||||
(ui/button "Commit and push"
|
||||
|
|
|
@ -3,12 +3,11 @@
|
|||
[cljs-time.core :as t]
|
||||
[frontend.util :as util]
|
||||
[frontend.state :as state]
|
||||
[frontend.config :as config]
|
||||
[promesa.core :as p]))
|
||||
[frontend.config :as config]))
|
||||
|
||||
(defn request-app-tokens!
|
||||
[ok-handler error-handler]
|
||||
(let [repos (:repos (state/get-me))
|
||||
(let [repos (state/get-repos)
|
||||
installation-ids (->> (map :installation_id repos)
|
||||
(remove nil?)
|
||||
(distinct))]
|
||||
|
@ -21,7 +20,7 @@
|
|||
(state/set-github-installation-tokens! result)
|
||||
(when ok-handler (ok-handler)))
|
||||
(fn [error]
|
||||
(println "Something wrong!")
|
||||
(println "Request app token failed.")
|
||||
(js/console.dir error)
|
||||
(when error-handler (error-handler)))))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue