Repository: ambari Updated Branches: refs/heads/trunk df8d54979 -> 7e370c3b6
AMBARI-6278. Spinner permanently displayed in Host Metrics block of Host Details page if Ganglia is not installed. (Max Shepel via akovalenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ccc4c3b9 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ccc4c3b9 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ccc4c3b9 Branch: refs/heads/trunk Commit: ccc4c3b97291c566bc9648f45ba3d1279c5942bb Parents: df8d549 Author: Aleksandr Kovalenko <[email protected]> Authored: Thu Jul 3 23:09:57 2014 +0300 Committer: Aleksandr Kovalenko <[email protected]> Committed: Thu Jul 3 23:09:57 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/templates/main/host/summary.hbs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ccc4c3b9/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 49e2909..df2a02f 100644 --- a/ambari-web/app/templates/main/host/summary.hbs +++ b/ambari-web/app/templates/main/host/summary.hbs @@ -130,13 +130,15 @@ <div class="box"> <div class="box-header"> <h4>{{t hosts.host.summary.hostMetrics}}</h4> - <div class="btn-group"> - {{#if App.router.clusterController.isGangliaUrlLoaded}} - <a class="btn" rel="tooltip" title="Go to Ganglia" {{action "showGangliaCharts" target="view"}}><i class="icon-link"></i></a> - {{else}} - <div class="spinner"></div> - {{/if}} - </div> + {{#if App.router.clusterController.isGangliaInstalled}} + <div class="btn-group"> + {{#if App.router.clusterController.isGangliaUrlLoaded}} + <a class="btn" rel="tooltip" title="Go to Ganglia" {{action "showGangliaCharts" target="view"}}><i class="icon-link"></i></a> + {{else}} + <div class="spinner"></div> + {{/if}} + </div> + {{/if}} </div> <div> {{view App.MainHostMetricsView contentBinding="view.content"}}
