mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 15:21:37 +02:00
🐛 [Prototype] Prototype mode should not allow edits
This commit is contained in:
parent
b4c87ad0b9
commit
d2590c7651
2 changed files with 15 additions and 2 deletions
|
@ -171,6 +171,15 @@
|
|||
(update shape :interactions
|
||||
csi/remove-interaction index)))))))
|
||||
|
||||
(defn remove-interactions
|
||||
[ids]
|
||||
(ptk/reify ::remove-interactions
|
||||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
(rx/of (dch/update-shapes ids
|
||||
(fn [shape]
|
||||
(assoc shape :interactions [])))))))
|
||||
|
||||
(defn update-interaction
|
||||
[shape index update-fn]
|
||||
(ptk/reify ::update-interaction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue