mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 16:21:40 +02:00
Open element options when shape is selected.
This commit is contained in:
parent
6f92604d87
commit
20e89cb8a7
1 changed files with 5 additions and 4 deletions
|
@ -341,10 +341,11 @@
|
||||||
(reify
|
(reify
|
||||||
rs/UpdateEvent
|
rs/UpdateEvent
|
||||||
(-apply-update [_ state]
|
(-apply-update [_ state]
|
||||||
(let [selected (get-in state [:workspace :selected])]
|
(let [selected (get-in state [:workspace :selected])
|
||||||
(if (contains? selected id)
|
state (if (contains? selected id)
|
||||||
(update-in state [:workspace :selected] disj id)
|
(update-in state [:workspace :selected] disj id)
|
||||||
(update-in state [:workspace :selected] conj id))))))
|
(update-in state [:workspace :selected] conj id))]
|
||||||
|
(update-in state [:workspace :flags] conj :element-options)))))
|
||||||
|
|
||||||
;; --- Select Shapes
|
;; --- Select Shapes
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue