瀏覽代碼

HUE-5857 [editor] Only spin on manual compatibility check

Romain Rigaux 8 年之前
父節點
當前提交
3cb7b07
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 4 - 4
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -1165,14 +1165,14 @@ var EditorViewModel = (function() {
         lastCompatibilityRequest.abort();
       }
 
-      logGA('compatibility');
-      self.compatibilityCheckRunning(true);
-      self.hasSuggestion(false);
-
       if (!targetPlatform) {
         targetPlatform = self.type();
       }
 
+      logGA('compatibility');
+      self.compatibilityCheckRunning(targetPlatform != self.type());
+      self.hasSuggestion(false);
+
       self.compatibilityTarget(targetPlatform);
 
       lastCompatibilityRequest = $.post("/notebook/api/optimizer/statement/compatibility", {