Explorar el Código

Update Routing (#3461)

sdess09 hace 2 años
padre
commit
5ff352fa22
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      dashboard/src/main/home/sidebar/ProjectSelectionModal.tsx

+ 6 - 1
dashboard/src/main/home/sidebar/ProjectSelectionModal.tsx

@@ -104,7 +104,12 @@ const ProjectSelectionModal: React.FC<Props> = ({
 
 
             if (clusters_list?.length > 0) {
             if (clusters_list?.length > 0) {
               setCurrentCluster(clusters_list[0]);
               setCurrentCluster(clusters_list[0]);
-              pushFiltered(props, "/apps", ["project_id"], {});
+              if (project.simplified_view_enabled) {
+                pushFiltered(props, "/onboarding/source", ["project_id"], {});
+              }
+              else {
+                pushFiltered(props, "/applications", ["project_id"], {});
+              }
             } else {
             } else {
               pushFiltered(props, "/onboarding", ["project_id"], {});
               pushFiltered(props, "/onboarding", ["project_id"], {});
             }
             }