Minor cosmetic changes on colors dashboard page ns.

This commit is contained in:
Andrey Antukh 2016-11-10 18:38:28 +01:00
parent de387d00b1
commit 396f16fe21
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -45,7 +45,6 @@
(let [local (:rum/local own)
dashboard (mx/react dashboard-ref)
own? (= :own (:type coll))
editable? (or own? (nil? id))
edit? (:edit @local)]
(letfn [(save []
(let [dom (mx/ref-node own "input")
@ -84,7 +83,7 @@
(:name coll)]
[:span.dashboard-title-field
(:name coll "Storage")]))]
(if (and own? coll)
(when (and own? coll)
[:div.edition
(if edit?
[:span {:on-click save} i/save]