incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r1339766 - in /incubator/ambari/branches/ambari-186: CHANGES.txt hmc/js/manageServices.js
Date Thu, 17 May 2012 18:12:06 GMT
Author: ramya
Date: Thu May 17 18:12:05 2012
New Revision: 1339766

URL: http://svn.apache.org/viewvc?rev=1339766&view=rev
Log:
AMBARI-257. Manage services section will have any empty section when no client only components
installed

Modified:
    incubator/ambari/branches/ambari-186/CHANGES.txt
    incubator/ambari/branches/ambari-186/hmc/js/manageServices.js

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1339766&r1=1339765&r2=1339766&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Thu May 17 18:12:05 2012
@@ -2,6 +2,9 @@ Ambari Change log
 
 Release 0.x.x - unreleased
 
+  AMBARI-257. Manage services section will have any empty section when no 
+  client only components installed (Vinod via ramya)
+
   AMBARI-253. Support uninstall state in mysql modules (ramya)
 
   AMBARI-258. Start/Stop service show services that are not dependent on the 

Modified: incubator/ambari/branches/ambari-186/hmc/js/manageServices.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/js/manageServices.js?rev=1339766&r1=1339765&r2=1339766&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/js/manageServices.js (original)
+++ incubator/ambari/branches/ambari-186/hmc/js/manageServices.js Thu May 17 18:12:05 2012
@@ -479,14 +479,18 @@ var fetchClusterServicesPollerResponseHa
     var serviceManagementMarkup = '';
 
     // Separate block for client-only software
-    serviceManagementMarkup += '<div class="serviceManagementGroup"> Client-only software:
<br/>';
+    var clientOnlySoftwareMarkup = '';
     for (var serviceName in clusterServices) {
       var serviceInfo = clusterServices[serviceName];
       if (clusterServices.hasOwnProperty(serviceName) && !serviceInfo.attributes.runnable)
{
-        serviceManagementMarkup += generateServiceManagementEntryMarkup( serviceName, serviceInfo
);
+        clientOnlySoftwareMarkup += generateServiceManagementEntryMarkup( serviceName, serviceInfo
);
       }
     }
-    serviceManagementMarkup += '</div>';
+    if (clientOnlySoftwareMarkup != '') {
+      serviceManagementMarkup += '<div class="serviceManagementGroup"> Client-only
software: <br/>';
+      serviceManagementGroup += clientOnlySoftwareMarkup;
+      serviceManagementMarkup += '</div>';
+    }
 
     // Real services with server side components
     serviceManagementMarkup += '<div class="serviceManagementGroup"> Long running services:
<br/><ul>';



Mime
View raw message