Repository: ambari Updated Branches: refs/heads/trunk 4a3ed67e1 -> d40b5214d
AMBARI-4909. Slave component should include "restart" command on host details page "Actions". (onechiporenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d40b5214 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d40b5214 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d40b5214 Branch: refs/heads/trunk Commit: d40b5214df2574d127e078dc840be8b8d4833662 Parents: 4a3ed67 Author: Oleg Nechiporenko <onechipore...@apache.org> Authored: Mon Mar 3 13:51:39 2014 +0200 Committer: Oleg Nechiporenko <onechipore...@apache.org> Committed: Mon Mar 3 13:51:39 2014 +0200 ---------------------------------------------------------------------- ambari-web/app/app.js | 2 +- ambari-web/app/templates/main/host/details/host_component.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/d40b5214/ambari-web/app/app.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/app.js b/ambari-web/app/app.js index 1d75573..5753ac5 100644 --- a/ambari-web/app/app.js +++ b/ambari-web/app/app.js @@ -215,7 +215,7 @@ module.exports = Em.Application.create({ components: Ember.Object.create({ reassignable: ['NAMENODE', 'SECONDARY_NAMENODE', 'JOBTRACKER', 'RESOURCEMANAGER'], restartable: function() { - return this.get('masters'); + return this.get('masters').concat(this.get('slaves')); }.property('masters'), deletable: ['SUPERVISOR', 'HBASE_MASTER', 'DATANODE', 'TASKTRACKER', 'NODEMANAGER', 'HBASE_REGIONSERVER'], rollinRestartAllowed: ["DATANODE", "TASKTRACKER", "NODEMANAGER", "HBASE_REGIONSERVER", "SUPERVISOR"], http://git-wip-us.apache.org/repos/asf/ambari/blob/d40b5214/ambari-web/app/templates/main/host/details/host_component.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/main/host/details/host_component.hbs b/ambari-web/app/templates/main/host/details/host_component.hbs index 10c772a..86bfdba 100644 --- a/ambari-web/app/templates/main/host/details/host_component.hbs +++ b/ambari-web/app/templates/main/host/details/host_component.hbs @@ -68,7 +68,7 @@ </li> {{/if}} {{#if view.isRestartableComponent}} - <li {{bindAttr class="view.isRestartComponentDisabled:disabled"}}> + <li {{bindAttr class="view.isRestartComponentDisabled:hidden"}}> <a href="javascript:void(null)" data-toggle="modal" {{action "restartComponent" view.content target="controller"}}> {{t common.restart}} </a>