Repository: ambari Updated Branches: refs/heads/trunk f4725228e -> 57759d049
AMBARI-10993 Graph widgets should show "n/a" (or something appropriate) when graph data is not available. (atkach) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/57759d04 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/57759d04 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/57759d04 Branch: refs/heads/trunk Commit: 57759d049e8f2427e13777f482bb204548f7bd20 Parents: f472522 Author: Andrii Tkach <[email protected]> Authored: Thu May 7 14:37:01 2015 +0300 Committer: Andrii Tkach <[email protected]> Committed: Thu May 7 15:59:03 2015 +0300 ---------------------------------------------------------------------- ambari-web/app/styles/enhanced_service_dashboard.less | 5 +++++ ambari-web/app/views/common/chart/linear_time.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/57759d04/ambari-web/app/styles/enhanced_service_dashboard.less ---------------------------------------------------------------------- diff --git a/ambari-web/app/styles/enhanced_service_dashboard.less b/ambari-web/app/styles/enhanced_service_dashboard.less index 854e5a2..464f4df 100644 --- a/ambari-web/app/styles/enhanced_service_dashboard.less +++ b/ambari-web/app/styles/enhanced_service_dashboard.less @@ -122,6 +122,11 @@ text-align: left; z-index: 3; } + .alert { + font-size: 12px; + padding: 4px; + font-weight: normal; + } } } .gauge-widget { http://git-wip-us.apache.org/repos/asf/ambari/blob/57759d04/ambari-web/app/views/common/chart/linear_time.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/common/chart/linear_time.js b/ambari-web/app/views/common/chart/linear_time.js index 25a0ff8..35e2a33 100644 --- a/ambari-web/app/views/common/chart/linear_time.js +++ b/ambari-web/app/views/common/chart/linear_time.js @@ -209,7 +209,7 @@ App.ChartLinearTimeView = Ember.View.extend({ * @type: Function */ _showMessage: function(type, title, message) { - var chartOverlay = '#' + this.id; + var chartOverlay = '#' + this.get('id'); var chartOverlayId = chartOverlay + '-chart'; var chartOverlayY = chartOverlay + '-yaxis'; var chartOverlayX = chartOverlay + '-xaxis';
