mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -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)))]
|
(seq (% ids-by-attributes)))]
|
||||||
[{:title "All"
|
[{:title "All"
|
||||||
:selected? 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"
|
{:title "Top Left"
|
||||||
:selected? (selected? :r1)
|
:selected? (selected? :r1)
|
||||||
:action (when all? #(js/console.log "all"))}
|
:action (when all? #(js/console.log "all"))}
|
||||||
|
|
Loading…
Add table
Reference in a new issue