Forráskód Böngészése

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

Romain Rigaux 8 éve
szülő
commit
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", {