mirror of
https://github.com/penpot/penpot.git
synced 2025-05-15 18:56:39 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
48909dc3c4
7 changed files with 187 additions and 23 deletions
|
@ -10,6 +10,7 @@
|
|||
[app.common.uuid :as uuid]
|
||||
[app.main.data.events :as ev]
|
||||
[app.main.store :as st]
|
||||
[beicon.v2.core :as rx]
|
||||
[cljs.core :as c]
|
||||
[potok.v2.core :as ptk]))
|
||||
|
||||
|
@ -30,6 +31,12 @@
|
|||
(dissoc :type)
|
||||
(assoc :name type)))
|
||||
|
||||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
(rx/of (ptk/event
|
||||
::ev/event
|
||||
{::ev/name "show-modal" :type type})))
|
||||
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
(assoc state ::modal {:id id
|
||||
|
|
|
@ -206,14 +206,16 @@
|
|||
(watch [_ _ _]
|
||||
(let [interactions (ctsi/update-interaction (:interactions shape) index update-fn)
|
||||
interaction (nth interactions index)]
|
||||
(rx/of (dwsh/update-shapes
|
||||
[(:id shape)]
|
||||
(fn [shape]
|
||||
(assoc shape :interactions interactions))
|
||||
options)
|
||||
(rx/of
|
||||
(dwsh/update-shapes
|
||||
[(:id shape)]
|
||||
(fn [shape]
|
||||
(-> shape
|
||||
(update :interactions ctsi/update-interaction index update-fn)))
|
||||
options)
|
||||
|
||||
(when (some? (:destination interaction))
|
||||
(dwsh/update-shapes [(:destination interaction)] cls/show-in-viewer options))))))))
|
||||
(when (some? (:destination interaction))
|
||||
(dwsh/update-shapes [(:destination interaction)] cls/show-in-viewer options))))))))
|
||||
|
||||
(defn remove-all-interactions-nav-to
|
||||
"Remove all interactions that navigate to the given frame."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue