ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-9474. Add HiveServer2 popup allows to select deleted host as target one (alexantonenko)
Date Wed, 04 Feb 2015 17:25:44 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk b8301188c -> 7316f1d14


AMBARI-9474. Add HiveServer2 popup allows to select deleted host as target one (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7316f1d1
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7316f1d1
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7316f1d1

Branch: refs/heads/trunk
Commit: 7316f1d147d02c608c314578eac736c11a88a14b
Parents: b830118
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Wed Feb 4 19:20:48 2015 +0200
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Wed Feb 4 19:21:01 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/main/host/details.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7316f1d1/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 0231f56..fd5061e 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -1780,13 +1780,15 @@ App.MainHostDetailsController = Em.Controller.extend({
       }
     });
   },
-  deleteHostSuccessCallback: function (data) {
+  deleteHostSuccessCallback: function (data, rq, requestBody) {
     var self = this;
     App.router.get('updateController').updateHost(function () {
       self.loadConfigs('loadHiveConfigs');
       self.loadConfigs();
       App.router.transitionTo('hosts.index');
     });
+    if(!!(requestBody && requestBody.hostName))
+      App.hostsMapper.deleteRecord(App.Host.find().findProperty('hostName', requestBody.hostName));
     App.router.get('clusterController').getAllHostNames();
   },
   deleteHostErrorCallback: function (xhr, textStatus, errorThrown, opt) {


Mime
View raw message