Explorar o código

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

Romain Rigaux %!s(int64=8) %!d(string=hai) anos
pai
achega
3cb7b07c11

+ 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", {