AMBARI-3855. YARN Client restart indicator not shown on host configs page. (akovalenko)
diff --git a/ambari-web/app/controllers/main/host/details.js b/ambari-web/app/controllers/main/host/details.js
index 708b1dc..06b0334 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -991,6 +991,9 @@
onPrimary: function () {
var hostComponents = this.content.get('content.hostComponents').filterProperty('staleConfigs', true);
hostComponents.forEach(function(item){
+ if (item.get('isClient') && commandName === 'start_component') {
+ return false;
+ }
var componentName = item.get('componentName');
var hostName = item.get('host.hostName');
App.ajax.send({
diff --git a/ambari-web/app/templates/main/host/summary.hbs b/ambari-web/app/templates/main/host/summary.hbs
index 7350b31..29fb794 100644
--- a/ambari-web/app/templates/main/host/summary.hbs
+++ b/ambari-web/app/templates/main/host/summary.hbs
@@ -154,11 +154,7 @@
<div class="span3 align-right">{{t common.clients}} /</div>
<div class="span7">
{{#each component in view.clients}}
- {{#if component.isLast}}
- {{component.displayName}}
- {{else}}
- {{component.displayName}},
- {{/if}}
+ {{component.displayName}}{{#if component.staleConfigs}} <i class="text-warning icon-refresh"></i>{{/if}}{{#unless component.isLast}},{{/unless}}
{{/each}}
</div>
{{/if}}
diff --git a/ambari-web/app/views/main/host/summary.js b/ambari-web/app/views/main/host/summary.js
index 29c656a..ea7bee8 100644
--- a/ambari-web/app/views/main/host/summary.js
+++ b/ambari-web/app/views/main/host/summary.js
@@ -35,8 +35,8 @@
},
needToRestartComponentsCount: function() {
- return this.get('sortedComponents').filterProperty('staleConfigs', true).length;
- }.property('sortedComponents.@each.staleConfigs'),
+ return this.get('content.hostComponents').filterProperty('staleConfigs', true).length;
+ }.property('content.hostComponents.@each.staleConfigs'),
stopComponentsIsDisabled: function () {
var staleComponents = this.get('sortedComponents').filterProperty('staleConfigs', true);