瀏覽代碼

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 年之前
父節點
當前提交
c7c75bec4f
共有 1 個文件被更改,包括 2 次插入1 次删除
  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(){