Repository: ambari Updated Branches: refs/heads/branch-2.1 9f75874c4 -> 82117f7f0
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/82117f7f Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/82117f7f Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/82117f7f Branch: refs/heads/branch-2.1 Commit: 82117f7f04bb170a060306f1ef01c89679755080 Parents: 9f75874 Author: Aleksandr Kovalenko <[email protected]> Authored: Tue Aug 18 14:04:56 2015 +0300 Committer: Aleksandr Kovalenko <[email protected]> Committed: Tue Aug 18 14:08: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/82117f7f/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 641ab3b..6947456 100644 --- a/ambari-web/app/controllers/main/host/details.js +++ b/ambari-web/app/controllers/main/host/details.js @@ -2315,11 +2315,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/82117f7f/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;
