mirror of
https://github.com/penpot/penpot.git
synced 2025-02-09 08:38:15 -05:00
Minor fixes on colorpalette.
This commit is contained in:
parent
12980b63f6
commit
d89dad3827
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@
|
||||||
(let [local (:rum/local own)
|
(let [local (:rum/local own)
|
||||||
flags (rum/react wb/flags-l)
|
flags (rum/react wb/flags-l)
|
||||||
collections-by-id (rum/react collections-by-id-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)]
|
collection (if-let [collid (:selected @local)]
|
||||||
(get collections-by-id collid)
|
(get collections-by-id collid)
|
||||||
(first collections))
|
(first collections))
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
[:div.color-palette
|
[:div.color-palette
|
||||||
[:div.color-palette-actions
|
[:div.color-palette-actions
|
||||||
[:select.input-select {:on-change select-collection}
|
[:select.input-select {:on-change select-collection}
|
||||||
(for [collection (vals collections-by-id)]
|
(for [collection collections]
|
||||||
[:option {:key (str (:id collection))
|
[:option {:key (str (:id collection))
|
||||||
:value (pr-str (:id collection))}
|
:value (pr-str (:id collection))}
|
||||||
(:name collection)])]
|
(:name collection)])]
|
||||||
|
|
Loading…
Add table
Reference in a new issue