mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Add all action
This commit is contained in:
parent
77fe4d556f
commit
9bf763efb3
1 changed files with 8 additions and 1 deletions
|
@ -220,7 +220,14 @@
|
|||
(seq (% ids-by-attributes)))]
|
||||
[{:title "All"
|
||||
:selected? all?
|
||||
:action (when all? #(js/console.log "all"))}
|
||||
:action #(if all?
|
||||
(st/emit! (wtc/unapply-token {:token {:id token-id}
|
||||
:attributes all-attributes
|
||||
:shape-ids shape-ids}))
|
||||
(st/emit! (wtc/apply-token {:token {:id token-id}
|
||||
:attributes all-attributes
|
||||
:on-update-shape wtc/update-shape-radius
|
||||
:shape-ids shape-ids})))}
|
||||
{:title "Top Left"
|
||||
:selected? (selected? :r1)
|
||||
:action (when all? #(js/console.log "all"))}
|
||||
|
|
Loading…
Add table
Reference in a new issue