From b464181213c19b5ecf75411ead82081b2ed5503f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Tue, 16 Mar 2021 14:25:32 +0100 Subject: [PATCH] :bug: Navigate when moving file to a different team --- frontend/src/app/main/ui/dashboard/file_menu.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/dashboard/file_menu.cljs b/frontend/src/app/main/ui/dashboard/file_menu.cljs index ea00d75a0..bb6c72196 100644 --- a/frontend/src/app/main/ui/dashboard/file_menu.cljs +++ b/frontend/src/app/main/ui/dashboard/file_menu.cljs @@ -93,7 +93,7 @@ mdata {:on-success #(do (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 {:team-id team-id :project-id project-id})) @@ -178,7 +178,7 @@ (conj (vec (for [project current-projects] [(project-name project) (on-move (:id current-team) - (:id project))])) + (:id project))])) (when (seq other-teams) [(tr "dashboard.move-to-other-team") nil (for [team other-teams]