mirror of
https://github.com/penpot/penpot.git
synced 2025-05-15 17:26:39 +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/use-fn
|
||||||
(mf/deps frame-id edition?)
|
(mf/deps frame-id edition?)
|
||||||
(fn []
|
(fn []
|
||||||
|
(when-not (-> @st/state :workspace-global :read-only?)
|
||||||
(if (not edition?)
|
(if (not edition?)
|
||||||
(reset! edition* true)
|
(reset! edition* true)
|
||||||
(st/emit! (dw/start-rename-shape frame-id)))))
|
(st/emit! (dw/start-rename-shape frame-id))))))
|
||||||
|
|
||||||
accept-edit
|
accept-edit
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue