style(token): fix code styles

pull/662/head
defclass 2020-11-17 16:33:18 +08:00
parent ac7603b6dd
commit 6de9b72405
2 changed files with 6 additions and 7 deletions

View File

@ -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"

View File

@ -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)))))))