mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 04:46:11 +02:00
🔥 Remove deprecated event from routr ns.
This commit is contained in:
parent
9c1c755836
commit
ee9b7166a6
3 changed files with 14 additions and 25 deletions
|
@ -74,10 +74,12 @@
|
|||
|
||||
on-new-tab
|
||||
(fn [_]
|
||||
(let [pparams {:project-id (:project-id file)
|
||||
:file-id (:id file)}
|
||||
qparams {:page-id (first (get-in file [:data :pages]))}]
|
||||
(st/emit! (rt/nav-new-window :workspace pparams qparams))))
|
||||
(let [path-params {:project-id (:project-id file)
|
||||
:file-id (:id file)}
|
||||
query-params {:page-id (first (get-in file [:data :pages]))}]
|
||||
(st/emit! (rt/nav-new-window* {:rname :workspace
|
||||
:path-params path-params
|
||||
:query-params query-params}))))
|
||||
|
||||
on-duplicate
|
||||
(fn [_]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue