Repository: ambari
Updated Branches:
  refs/heads/trunk 0f6ca9210 -> afb8b3b71


AMBARI-11007. Time range control not showing for non-enhanced dashboard 
services. (jaimin)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/afb8b3b7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/afb8b3b7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/afb8b3b7

Branch: refs/heads/trunk
Commit: afb8b3b71ac6db4c045acfe7e3c8c3c8ec8689b3
Parents: 0f6ca92
Author: Jaimin Jetly <jai...@hortonworks.com>
Authored: Thu May 7 15:48:43 2015 -0700
Committer: Jaimin Jetly <jai...@hortonworks.com>
Committed: Thu May 7 15:48:43 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/info/summary.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/afb8b3b7/ambari-web/app/controllers/main/service/info/summary.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/info/summary.js 
b/ambari-web/app/controllers/main/service/info/summary.js
index f29712a..26a8a4a 100644
--- a/ambari-web/app/controllers/main/service/info/summary.js
+++ b/ambari-web/app/controllers/main/service/info/summary.js
@@ -80,7 +80,7 @@ App.MainServiceInfoSummaryController = 
Em.Controller.extend(App.WidgetSectionMix
    * @type {boolean}
    */
   showTimeRangeControl: function () {
-    return this.get('isServiceWithEnhancedWidgets') && 
this.get('widgets').filterProperty('widgetType', 'GRAPH').length > 0;
+    return !this.get('isServiceWithEnhancedWidgets') || 
this.get('widgets').filterProperty('widgetType', 'GRAPH').length > 0;
   }.property('isServiceWithEnhancedWidgets', 'widgets.length'),
 
   /**

Reply via email to