mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
🐛 Navigate when moving file to a different team
This commit is contained in:
parent
ef901dbd5e
commit
b464181213
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@
|
||||||
mdata {:on-success
|
mdata {:on-success
|
||||||
#(do
|
#(do
|
||||||
(st/emit! (dm/success (tr "dashboard.success-move-file")))
|
(st/emit! (dm/success (tr "dashboard.success-move-file")))
|
||||||
(if navigate?
|
(if (or navigate? (not= team-id current-team-id))
|
||||||
(st/emit! (rt/nav :dashboard-files
|
(st/emit! (rt/nav :dashboard-files
|
||||||
{:team-id team-id
|
{:team-id team-id
|
||||||
:project-id project-id}))
|
:project-id project-id}))
|
||||||
|
@ -178,7 +178,7 @@
|
||||||
(conj (vec (for [project current-projects]
|
(conj (vec (for [project current-projects]
|
||||||
[(project-name project)
|
[(project-name project)
|
||||||
(on-move (:id current-team)
|
(on-move (:id current-team)
|
||||||
(:id project))]))
|
(:id project))]))
|
||||||
(when (seq other-teams)
|
(when (seq other-teams)
|
||||||
[(tr "dashboard.move-to-other-team") nil
|
[(tr "dashboard.move-to-other-team") nil
|
||||||
(for [team other-teams]
|
(for [team other-teams]
|
||||||
|
|
Loading…
Add table
Reference in a new issue