Repository: ambari Updated Branches: refs/heads/trunk 00f7a6a61 -> cd38a54d6
AMBARI-8632 add redirect to the cluster from admin view versions. (ababiichuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/cd38a54d Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/cd38a54d Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/cd38a54d Branch: refs/heads/trunk Commit: cd38a54d6d48152e65623af6c4ddc4b4f00a5ad5 Parents: 00f7a6a Author: aBabiichuk <ababiic...@cybervisiontech.com> Authored: Wed Dec 10 16:02:33 2014 +0200 Committer: aBabiichuk <ababiic...@cybervisiontech.com> Committed: Wed Dec 10 17:33:45 2014 +0200 ---------------------------------------------------------------------- .../scripts/controllers/stackVersions/StackVersionsListCtrl.js | 4 ++++ .../resources/ui/admin-web/app/views/stackVersions/list.html | 1 + 2 files changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/cd38a54d/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsListCtrl.js ---------------------------------------------------------------------- diff --git a/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsListCtrl.js b/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsListCtrl.js index 9266d8a..0a94a59 100644 --- a/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsListCtrl.js +++ b/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, http://git-wip-us.apache.org/repos/asf/ambari/blob/cd38a54d/ambari-admin/src/main/resources/ui/admin-web/app/views/stackVersions/list.html ---------------------------------------------------------------------- diff --git a/ambari-admin/src/main/resources/ui/admin-web/app/views/stackVersions/list.html b/ambari-admin/src/main/resources/ui/admin-web/app/views/stackVersions/list.html index 34ab2c9..28af93f 100644 --- a/ambari-admin/src/main/resources/ui/admin-web/app/views/stackVersions/list.html +++ b/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>