From d89dad3827ce5881898128968a0f8a953a39a156 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 20 Jan 2016 20:03:48 +0200 Subject: [PATCH] Minor fixes on colorpalette. --- src/uxbox/ui/workspace/colorpalette.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uxbox/ui/workspace/colorpalette.cljs b/src/uxbox/ui/workspace/colorpalette.cljs index b1c208fb2..7891bac54 100644 --- a/src/uxbox/ui/workspace/colorpalette.cljs +++ b/src/uxbox/ui/workspace/colorpalette.cljs @@ -44,7 +44,7 @@ (let [local (:rum/local own) flags (rum/react wb/flags-l) collections-by-id (rum/react collections-by-id-l) - collections (vals collections-by-id) + collections (sort-by :name (vals collections-by-id)) collection (if-let [collid (:selected @local)] (get collections-by-id collid) (first collections)) @@ -55,7 +55,7 @@ [:div.color-palette [:div.color-palette-actions [:select.input-select {:on-change select-collection} - (for [collection (vals collections-by-id)] + (for [collection collections] [:option {:key (str (:id collection)) :value (pr-str (:id collection))} (:name collection)])]