You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/04/09 15:46:26 UTC
ambari git commit: AMBARI-10297. Hosts List Actions list always shows
one more than what is selected (alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/branch-2.0.0 7d77b8714 -> 70ff2b27f
AMBARI-10297. Hosts List Actions list always shows one more than what is selected (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/70ff2b27
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/70ff2b27
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/70ff2b27
Branch: refs/heads/branch-2.0.0
Commit: 70ff2b27fefe0ae6b318e6dbbb3aaa5e31d7d709
Parents: 7d77b87
Author: Alex Antonenko <hi...@gmail.com>
Authored: Thu Apr 9 16:46:17 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Thu Apr 9 16:46:17 2015 +0300
----------------------------------------------------------------------
ambari-web/app/controllers/main/host/details.js | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/70ff2b27/ambari-web/app/controllers/main/host/details.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host/details.js b/ambari-web/app/controllers/main/host/details.js
index 5eac7ca..1df8c0c 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -1753,6 +1753,8 @@ App.MainHostDetailsController = Em.Controller.extend({
onPrimary: function () {
var popup = this;
var completeCallback = function () {
+ var remainingHosts = App.db.getSelectedHosts('mainHostController').removeObject(self.get('content.hostName'));
+ App.db.setSelectedHosts('mainHostController', remainingHosts);
popup.hide();
};
self.doDeleteHost(completeCallback);