mirror of
https://github.com/penpot/penpot.git
synced 2026-04-26 19:58:09 +00:00
🐛 Fix edit name on read-only mode (#5737)
This commit is contained in:
parent
0483d1fd93
commit
14aa80e027
@ -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…
x
Reference in New Issue
Block a user