You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2013/08/27 16:29:00 UTC

git commit: AMBARI-3034 Installer wizard: Ambari web-ui breaks while sign-in after manually hitting installer step url. (atkach)

Updated Branches:
  refs/heads/trunk ca47b36df -> 1220239dc


AMBARI-3034 Installer wizard: Ambari web-ui breaks while sign-in after manually hitting installer step url. (atkach)


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

Branch: refs/heads/trunk
Commit: 1220239dc2b90078a3b060b5315499f8dc7be9fe
Parents: ca47b36
Author: atkach <an...@gmail.com>
Authored: Tue Aug 27 17:28:33 2013 +0300
Committer: atkach <an...@gmail.com>
Committed: Tue Aug 27 17:28:33 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/installer.js | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/1220239d/ambari-web/app/controllers/installer.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/installer.js b/ambari-web/app/controllers/installer.js
index d7263af..2fe4f5e 100644
--- a/ambari-web/app/controllers/installer.js
+++ b/ambari-web/app/controllers/installer.js
@@ -35,6 +35,7 @@ App.InstallerController = App.WizardController.extend({
     serviceConfigProperties: null,
     advancedServiceConfig: null,
     slaveGroupProperties: null,
+    stacks: null,
     controllerName: 'installerController'
   }),
 
@@ -46,6 +47,16 @@ App.InstallerController = App.WizardController.extend({
       value: false
     }));
   },
+  /**
+   * redefined connectOutlet method to avoid view loading by unauthorized user
+   * @param view
+   * @param content
+   */
+  connectOutlet: function(view, content) {
+    if(App.db.getAuthenticated()) {
+      this._super(view, content);
+    }
+  },
 
   getCluster: function(){
     return jQuery.extend({}, this.get('clusterStatusTemplate'));