This is an automated email from the ASF dual-hosted git repository.

atkach pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 8878e71  AMBARI-24921 If service does not have client service 
component created then "Run Service Check" option should be made hidden (second 
patch)
8878e71 is described below

commit 8878e71616483895f2e05f3bdcd58d96c0cb6dec
Author: Andrii Tkach <[email protected]>
AuthorDate: Tue Nov 27 12:57:09 2018 +0200

    AMBARI-24921 If service does not have client service component created then 
"Run Service Check" option should be made hidden (second patch)
---
 ambari-web/app/views/main/service/item.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ambari-web/app/views/main/service/item.js 
b/ambari-web/app/views/main/service/item.js
index 430d62a..1a95bb5 100644
--- a/ambari-web/app/views/main/service/item.js
+++ b/ambari-web/app/views/main/service/item.js
@@ -158,11 +158,11 @@ App.MainServiceItemView = 
Em.View.extend(App.HiveInteractiveCheck, {
     var allMasters = 
service.get('hostComponents').filterProperty('isMaster').mapProperty('componentName').uniq();
     var allSlaves = 
service.get('slaveComponents').rejectProperty('totalCount', 
0).mapProperty('componentName');
     var actionMap = App.HostComponentActionMap.getMap(this);
-    var serviceCheckSupported = 
App.get('services.supportsServiceCheck').contains(service.get('serviceName'))
-      && service.get('installedClients') > 0;
+    var serviceName = service.get('serviceName');
+    var hasClient = App.StackService.find(serviceName).get('hasClient') ? 
service.get('installedClients') > 0 : true;
+    var serviceCheckSupported = 
App.get('services.supportsServiceCheck').contains(serviceName) && hasClient;
     var hasConfigTab = this.get('hasConfigTab');
     var excludedCommands = this.get('mastersExcludedCommands');
-    var serviceName = service.get('serviceName');
     var hasMultipleMasterComponentGroups = 
this.get('service.hasMultipleMasterComponentGroups');
 
     if (App.isAuthorized('SERVICE.START_STOP')) {

Reply via email to