Bladeren bron

Updated routing to redirect to cluster-dashboard

jnfrati 5 jaren geleden
bovenliggende
commit
b3a105a6f4
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      dashboard/src/main/home/dashboard/ClusterList.tsx
  2. 1 1
      dashboard/src/main/home/sidebar/Drawer.tsx

+ 1 - 1
dashboard/src/main/home/dashboard/ClusterList.tsx

@@ -162,7 +162,7 @@ class Templates extends Component<PropsType, StateType> {
           <TemplateBlock
             onClick={() => {
               this.context.setCurrentCluster(cluster);
-              pushFiltered(this.props, "/applications", ["project_id"], {
+              pushFiltered(this.props, "/cluster-dashboard", ["project_id"], {
                 cluster: cluster.name,
               });
             }}

+ 1 - 1
dashboard/src/main/home/sidebar/Drawer.tsx

@@ -35,7 +35,7 @@ class Drawer extends Component<PropsType, StateType> {
             active={cluster.name === currentCluster.name}
             onClick={() => {
               setCurrentCluster(cluster, () => {
-                pushFiltered(this.props, "/applications", ["project_id"], {
+                pushFiltered(this.props, "/cluster-dashboard", ["project_id"], {
                   cluster: cluster.name,
                 });
               });