Commit 21ee38fe authored by Heinz N. Gies's avatar Heinz N. Gies

Fix API token creation bug

parent 28d89153
......@@ -339,6 +339,7 @@
(defn token-modal [owner state]
(pr state)
(d/div
{:style {:display (if (:token state) "block" "none")} }
(md/modal
......@@ -370,7 +371,7 @@
(if (= 200 (:status resp))
(do
(users/get uuid)
(om/set-state! owner :token (:token (js->clj (:body resp)))))))))
(om/set-state! owner :token (:cert (:body resp))))))))
(defn render-tokens [app owner {:keys [id]}]
(reify
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment