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/3cedb020 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3cedb020 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3cedb020 Branch: refs/heads/trunk Commit: 3cedb0200c1d39460b17ac5c505f3cd05d28ce95 Parents: af5a151 Author: Alex Antonenko <[email protected]> Authored: Tue Mar 31 20:20:09 2015 +0300 Committer: Alex Antonenko <[email protected]> Committed: Tue Mar 31 21:46:14 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/3cedb020/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 b9e83fc..70d0ad4 100644 --- a/ambari-web/app/controllers/main/host/details.js +++ b/ambari-web/app/controllers/main/host/details.js @@ -1773,6 +1773,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);
