mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 18:06:38 +02:00
🐛 Fix edit name on read-only mode (#5737)
This commit is contained in:
parent
0483d1fd93
commit
14aa80e027
1 changed files with 4 additions and 3 deletions
|
@ -147,9 +147,10 @@
|
|||
(mf/use-fn
|
||||
(mf/deps frame-id edition?)
|
||||
(fn []
|
||||
(if (not edition?)
|
||||
(reset! edition* true)
|
||||
(st/emit! (dw/start-rename-shape frame-id)))))
|
||||
(when-not (-> @st/state :workspace-global :read-only?)
|
||||
(if (not edition?)
|
||||
(reset! edition* true)
|
||||
(st/emit! (dw/start-rename-shape frame-id))))))
|
||||
|
||||
accept-edit
|
||||
(mf/use-fn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue