From 396f16fe21c22b1c15ad752c3dd42d833069e373 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 10 Nov 2016 18:38:28 +0100 Subject: [PATCH] Minor cosmetic changes on colors dashboard page ns. --- src/uxbox/main/ui/dashboard/colors.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uxbox/main/ui/dashboard/colors.cljs b/src/uxbox/main/ui/dashboard/colors.cljs index 8ee43db01b..b16b0cc9d5 100644 --- a/src/uxbox/main/ui/dashboard/colors.cljs +++ b/src/uxbox/main/ui/dashboard/colors.cljs @@ -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]