Repository: ambari Updated Branches: refs/heads/branch-1.7.0 af6428a57 -> 478c8f27a
AMBARI-7990. Wrong title on step 8 of installation (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/51b314e4 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/51b314e4 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/51b314e4 Branch: refs/heads/branch-1.7.0 Commit: 51b314e40d54fe2e6d2422adb8353eafc8d8c184 Parents: af6428a Author: Alex Antonenko <hiv...@gmail.com> Authored: Mon Oct 27 21:21:15 2014 +0200 Committer: Alex Antonenko <hiv...@gmail.com> Committed: Mon Oct 27 23:39:24 2014 +0200 ---------------------------------------------------------------------- ambari-web/app/controllers/main.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/51b314e4/ambari-web/app/controllers/main.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main.js b/ambari-web/app/controllers/main.js index 8ab30f5..7a54ced 100644 --- a/ambari-web/app/controllers/main.js +++ b/ambari-web/app/controllers/main.js @@ -24,13 +24,15 @@ App.MainController = Em.Controller.extend({ updateTitle: function(){ var name = App.router.get('clusterController.clusterName'); - if (name) { - name = name.length > 13 ? name.substr(0, 10) + "..." : name; - } else { - name = Em.I18n.t('common.loading'); + if(App.clusterStatus.get('isInstalled')) { + if (name) { + name = name.length > 13 ? name.substr(0, 10) + "..." : name; + } else { + name = Em.I18n.t('common.loading'); + } + $('title').text('Ambari - ' + name); } - $('title').text('Ambari - ' + name); - }.observes('App.router.clusterController.clusterName'), + }.observes('App.router.clusterController.clusterName, App.clusterStatus.isInstalled'), isClusterDataLoaded: function(){ return App.router.get('clusterController.isLoaded');