Browse Source

AMBARI-8632 add redirect to the cluster from admin view versions. (ababiichuk)

aBabiichuk 10 years ago
parent
commit
cd38a54d6d

+ 4 - 0
ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsListCtrl.js

@@ -58,6 +58,10 @@ angular.module('ambariAdminConsole')
     $scope.getStackVersions();
   };
 
+  $scope.goToCluster = function() {
+    window.location.replace('/#/main/admin/versions/updates');
+  };
+
   $scope.tableInfo = {
     total: 0,
     showed: 0,

+ 1 - 0
ambari-admin/src/main/resources/ui/admin-web/app/views/stackVersions/list.html

@@ -65,6 +65,7 @@
           {{stack.cluster}}
         </a>
     <select ng-show="!stack.cluster"
+            ng-change="goToCluster()"
             ng-model="selectedCluster"
             ng-options="cluster.Clusters.cluster_name for cluster in clusters">
     </select>