From 2237eb0f548e72623fc582a29249be01e7e5a49e Mon Sep 17 00:00:00 2001 From: "mathieu.brunot" Date: Sun, 24 Feb 2019 01:05:43 +0100 Subject: [PATCH] :construction: wip --- frontend/src/uxbox/main/data/icons.cljs | 1 + frontend/src/uxbox/main/ui/dashboard/icons.cljs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/uxbox/main/data/icons.cljs b/frontend/src/uxbox/main/data/icons.cljs index f1d5fb62f..eef0195d0 100644 --- a/frontend/src/uxbox/main/data/icons.cljs +++ b/frontend/src/uxbox/main/data/icons.cljs @@ -234,6 +234,7 @@ (prepare [[content metadata]] {:collection id :content content + :id (uuid/random) ;; TODO Keep the name of the original icon :name (str "Icon " (gensym "i")) :metadata metadata})] diff --git a/frontend/src/uxbox/main/ui/dashboard/icons.cljs b/frontend/src/uxbox/main/ui/dashboard/icons.cljs index 6cc9bc771..4305f91bd 100644 --- a/frontend/src/uxbox/main/ui/dashboard/icons.cljs +++ b/frontend/src/uxbox/main/ui/dashboard/icons.cljs @@ -285,7 +285,8 @@ (st/emit! (di/update-opts :edition selected))))] ;; MULTISELECT OPTIONS BAR [:div.multiselect-bar {} - (if editable? + (if (or (= type :own) (nil? coll)) + ;; if editable [:div.multiselect-nav {} [:span.move-item.tooltip.tooltip-top {:alt (tr "ds.multiselect-bar.copy")