You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2015/08/18 13:07:06 UTC

ambari git commit: AMBARI-12804. HDFS quicklinks are empty if refresh page on Configs or Heatmaps page (akovalenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 424e07a5e -> febf93bd3


AMBARI-12804. HDFS quicklinks are empty if refresh page on Configs or Heatmaps page (akovalenko)


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

Branch: refs/heads/trunk
Commit: febf93bd3f2bd2a88df6637e6924dda6518bc0f3
Parents: 424e07a
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Tue Aug 18 14:04:56 2015 +0300
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Tue Aug 18 14:04:56 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/host/details.js     | 3 +--
 ambari-web/app/views/common/quick_view_link_view.js | 6 ++++--
 2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/febf93bd/ambari-web/app/controllers/main/host/details.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host/details.js b/ambari-web/app/controllers/main/host/details.js
index 7dde6e9..adf0c40 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -2323,11 +2323,10 @@ App.MainHostDetailsController = Em.Controller.extend({
   },
 
   /**
-   *
+   * Call callback after loading service metrics
    * @param callback
    */
   isServiceMetricsLoaded: function(callback) {
-    var self = this;
     App.router.get('mainController').isLoading.call(App.router.get('clusterController'), 'isServiceContentFullyLoaded').done(callback);
   }
 });

http://git-wip-us.apache.org/repos/asf/ambari/blob/febf93bd/ambari-web/app/views/common/quick_view_link_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/quick_view_link_view.js b/ambari-web/app/views/common/quick_view_link_view.js
index 56bc0b2..acb7570 100644
--- a/ambari-web/app/views/common/quick_view_link_view.js
+++ b/ambari-web/app/views/common/quick_view_link_view.js
@@ -123,8 +123,10 @@ App.QuickViewLinks = Em.View.extend({
   },
 
   setQuickLinks: function () {
-    this.loadTags();
-  }.observes('App.currentStackVersionNumber', 'App.singleNodeInstall'),
+    if (App.get('router.clusterController.isServiceMetricsLoaded')) {
+      this.loadTags();
+    }
+  }.observes('App.currentStackVersionNumber', 'App.singleNodeInstall', 'App.router.clusterController.isServiceMetricsLoaded'),
 
   setQuickLinksSuccessCallback: function (response) {
     var self = this;