0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 04:49:03 -05:00

Merge pull request #1712 from penpot/revert-not-allow-edits-on-prototype-mode

🐛 Revert d2590c7: 🐛 [Prototype] Prototype mode should not all…
This commit is contained in:
Alejandro 2022-03-23 11:22:49 +01:00 committed by GitHub
commit 5564d93d59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 16 deletions

View file

@ -556,13 +556,9 @@
ptk/WatchEvent
(watch [_ state _]
(let [selected (wsh/lookup-selected state)
hover-guides (get-in state [:workspace-guides :hover])
options-mode (get-in state [:workspace-global :options-mode])]
hover-guides (get-in state [:workspace-guides :hover])]
(cond
(and (= options-mode :prototype) (d/not-empty? selected))
(rx/of (dwi/remove-interactions selected))
(and (= options-mode :design) (d/not-empty? selected))
(d/not-empty? selected)
(rx/of (dwc/delete-shapes selected)
(dws/deselect-all))

View file

@ -139,15 +139,6 @@
(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

View file

@ -1 +1 @@
1.13.0-beta
1.14.0-beta