mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 00:31:40 +02:00
Add the ability to edit page name from page element-options.
This commit is contained in:
parent
bfce5f8a00
commit
d3e81dc810
5 changed files with 115 additions and 52 deletions
|
@ -62,10 +62,12 @@
|
|||
:name name)
|
||||
state (if (nil? group)
|
||||
(-> state
|
||||
(update-in [:pages page :shapes] #(into [] (cons id %)))
|
||||
(update-in [:pages page :shapes]
|
||||
#(into [] (cons id %)))
|
||||
(assoc-in [:shapes id] shape))
|
||||
(-> state
|
||||
(update-in [:shapes group :items] #(into [] (cons id %)))
|
||||
(update-in [:shapes group :items]
|
||||
#(into [] (cons id %)))
|
||||
(assoc-in [:shapes id] shape)))]
|
||||
(->> (map #(get-in state [:shapes %]) items)
|
||||
(reverse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue