AMBARI-7334. Slider View: Show view name along with hover of view properties - fixes (srimanth)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e033815c Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e033815c Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e033815c Branch: refs/heads/branch-alerts-dev Commit: e033815cc723900ef52884439634e5732f7eabc0 Parents: cae2fc4 Author: Srimanth Gunturi <sgunt...@hortonworks.com> Authored: Tue Sep 16 22:28:24 2014 -0700 Committer: Srimanth Gunturi <sgunt...@hortonworks.com> Committed: Tue Sep 16 22:28:24 2014 -0700 ---------------------------------------------------------------------- .../main/resources/ui/app/controllers/slider_controller.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/e033815c/contrib/views/slider/src/main/resources/ui/app/controllers/slider_controller.js ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/ui/app/controllers/slider_controller.js b/contrib/views/slider/src/main/resources/ui/app/controllers/slider_controller.js index 51fd057..5eb323d 100644 --- a/contrib/views/slider/src/main/resources/ui/app/controllers/slider_controller.js +++ b/contrib/views/slider/src/main/resources/ui/app/controllers/slider_controller.js @@ -100,10 +100,12 @@ App.SliderController = Ember.Controller.extend(App.RunPeriodically, { getParametersFromViewPropertiesSuccessCallback: function(data) { var properties = Em.get(data, 'ViewInstanceInfo.properties'), initialValuesToLoad = this.get('initialValuesToLoad'); - if (Em.isEmpty(properties)) { + if (properties == null || properties['hdfs.address'] == null + || properties['yarn.resourcemanager.address'] == null + || properties['yarn.resourcemanager.scheduler.address'] == null + || properties['zookeeper.quorum'] == null) { this.getClusterName(); - } - else { + } else { initialValuesToLoad.setProperties({ ambariAddress: location.protocol + "//" + document.location.host, hdfsAddress: properties['hdfs.address'],