瀏覽代碼

AMBARI-4155. Missing Security warning on Review step after page refresh. (onechiporenko)

Oleg Nechiporenko 11 年之前
父節點
當前提交
31be5e3e9d
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      ambari-web/app/controllers/wizard/step8_controller.js

+ 4 - 2
ambari-web/app/controllers/wizard/step8_controller.js

@@ -38,7 +38,9 @@ App.WizardStep8Controller = Em.Controller.extend({
   hasErrorOccurred: false,
   servicesInstalled: false,
   serviceConfigTags: [],
-  securityEnabled: false,
+  securityEnabled: function() {
+    return App.router.get('mainAdminSecurityController.securityEnabled');
+  }.property('App.router.mainAdminSecurityController.securityEnabled'),
   /**
    * During page save time, we set the host overrides to the server.
    * The new host -> site:tag map is stored below. This will be
@@ -79,7 +81,7 @@ App.WizardStep8Controller = Em.Controller.extend({
   loadStep: function () {
     console.log("TRACE: Loading step8: Review Page");
     if (this.get('content.controllerName') != 'installerController') {
-      this.set('securityEnabled', App.router.get('mainAdminSecurityController').getUpdatedSecurityStatus());
+      App.router.get('mainAdminSecurityController').setSecurityStatus();
     }
     this.clearStep();
     this.formatProperties();