Browse Source

AMBARI-2477. Incorrect behavior of dashboard widgets after switching to classic dashboard and returning. (Xi Wang via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1496719 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 years ago
parent
commit
c7c75bec4f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ambari-web/app/views/main/dashboard.js

+ 2 - 1
ambari-web/app/views/main/dashboard.js

@@ -365,11 +365,12 @@ App.MainDashboardView = Em.View.extend({
       var oldValue = this.get('currentPrefObject');
       oldValue.dashboardVersion = 'new';
       this.postUserPref(this.get('persistKey'), oldValue);
+      this.didInsertElement();
     }else{
       var oldValue = this.get('initPrefObject');
       oldValue.dashboardVersion = 'new';
+      this.translateToReal(oldValue);
     }
-    this.translateToReal(oldValue);
   },
 
   updateServices: function(){