ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject ambari git commit: AMBARI-12529. Host component is not deleting after clicking delete first time (akovalenko)
Date Fri, 24 Jul 2015 16:03:52 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 1a638464b -> 4a878cdb5


AMBARI-12529. Host component is not deleting after clicking delete first time (akovalenko)


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

Branch: refs/heads/branch-2.1
Commit: 4a878cdb59aaba90818eca0e5290407ff62552f9
Parents: 1a63846
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Fri Jul 24 19:03:36 2015 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Fri Jul 24 19:03:36 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/4a878cdb/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 e89bfc5..29d66b0 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -382,7 +382,8 @@ App.MainHostDetailsController = Em.Controller.extend({
    */
   removeHostComponentModel: function(componentName, hostName) {
     var component = App.HostComponent.find().filterProperty('componentName', componentName).findProperty('hostName',
hostName);
-    App.cache['services'].findProperty('ServiceInfo.service_name', component.get('serviceName')).host_components.without(component.get('id'));
+    var serviceInCache = App.cache['services'].findProperty('ServiceInfo.service_name', component.get('service.serviceName'));
+    serviceInCache.host_components = serviceInCache.host_components.without(component.get('id'));
     App.serviceMapper.deleteRecord(component);
   },
 


Mime
View raw message