You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2014/02/11 13:00:41 UTC
git commit: AMBARI-4595. Host Details page: don't show pulldown menu
for Clients if no client is installed on the host. (onechiporenko)
Updated Branches:
refs/heads/trunk 980cdec62 -> 3990199f9
AMBARI-4595. Host Details page: don't show pulldown menu for Clients if no client is installed on the host. (onechiporenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3990199f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3990199f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3990199f
Branch: refs/heads/trunk
Commit: 3990199f97906b56ceca44aef4a0b6020b08e895
Parents: 980cdec
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Tue Feb 11 13:58:53 2014 +0200
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Tue Feb 11 14:00:34 2014 +0200
----------------------------------------------------------------------
ambari-web/app/templates/main/host/summary.hbs | 28 +++++++++++----------
1 file changed, 15 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/3990199f/ambari-web/app/templates/main/host/summary.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/host/summary.hbs b/ambari-web/app/templates/main/host/summary.hbs
index 12ae14a..83c0ade 100644
--- a/ambari-web/app/templates/main/host/summary.hbs
+++ b/ambari-web/app/templates/main/host/summary.hbs
@@ -76,19 +76,21 @@
</div>
<div class="span5 row">
{{#if App.isAdmin}}
- <div class="btn-group pull-right">
- <button id="add_component" data-toggle="dropdown" {{bindAttr class=":btn :dropdown-toggle controller.content.isNotHeartBeating:disabled"}}>
- {{t common.installed}}
- <span class="caret pull-right"></span>
- </button>
- <ul class="dropdown-menu">
- <li>
- <a href="javascript:void(null)" {{bindAttr class="view.areClientWithStaleConfigs::disabled"}} data-toggle="modal" {{action refreshConfigs view.clients target="controller"}}>
- {{t hosts.host.details.refreshConfigs}}
- </a>
- </li>
- </ul>
- </div>
+ {{#if view.clients.length}}
+ <div class="btn-group pull-right">
+ <button id="add_component" data-toggle="dropdown" {{bindAttr class=":btn :dropdown-toggle controller.content.isNotHeartBeating:disabled"}}>
+ {{t common.installed}}
+ <span class="caret pull-right"></span>
+ </button>
+ <ul class="dropdown-menu">
+ <li>
+ <a href="javascript:void(null)" {{bindAttr class="view.areClientWithStaleConfigs::disabled"}} data-toggle="modal" {{action refreshConfigs view.clients target="controller"}}>
+ {{t hosts.host.details.refreshConfigs}}
+ </a>
+ </li>
+ </ul>
+ </div>
+ {{/if}}
{{/if}}
</div>
</div>