Преглед изворни кода

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

Romain Rigaux пре 8 година
родитељ
комит
3cb7b07c11
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", {