|
@@ -938,7 +938,6 @@ var EditorViewModel = (function() {
|
|
|
self.suggestion = ko.observable('');
|
|
self.suggestion = ko.observable('');
|
|
|
self.hasSuggestion = ko.observable(null);
|
|
self.hasSuggestion = ko.observable(null);
|
|
|
|
|
|
|
|
- self.complexityCheckRunning = ko.observable(false);
|
|
|
|
|
self.compatibilityCheckRunning = ko.observable(false);
|
|
self.compatibilityCheckRunning = ko.observable(false);
|
|
|
self.compatibilitySourcePlatform = ko.observable(self.type());
|
|
self.compatibilitySourcePlatform = ko.observable(self.type());
|
|
|
self.compatibilitySourcePlatform.subscribe(function(newValue) {
|
|
self.compatibilitySourcePlatform.subscribe(function(newValue) {
|
|
@@ -993,7 +992,6 @@ var EditorViewModel = (function() {
|
|
|
self.getApiHelper().cancelActiveRequest(lastComplexityRequest);
|
|
self.getApiHelper().cancelActiveRequest(lastComplexityRequest);
|
|
|
|
|
|
|
|
hueAnalytics.log('notebook', 'get_query_risk');
|
|
hueAnalytics.log('notebook', 'get_query_risk');
|
|
|
- self.complexityCheckRunning(true);
|
|
|
|
|
self.hasSuggestion(null);
|
|
self.hasSuggestion(null);
|
|
|
self.complexity({});
|
|
self.complexity({});
|
|
|
huePubSub.publish('editor.active.risks', {
|
|
huePubSub.publish('editor.active.risks', {
|
|
@@ -1004,7 +1002,6 @@ var EditorViewModel = (function() {
|
|
|
var changeSubscription = self.statement.subscribe(function () {
|
|
var changeSubscription = self.statement.subscribe(function () {
|
|
|
changeSubscription.dispose();
|
|
changeSubscription.dispose();
|
|
|
self.getApiHelper().cancelActiveRequest(lastComplexityRequest);
|
|
self.getApiHelper().cancelActiveRequest(lastComplexityRequest);
|
|
|
- self.complexityCheckRunning(false);
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
lastComplexityRequest = $.ajax({
|
|
lastComplexityRequest = $.ajax({
|
|
@@ -1031,10 +1028,6 @@ var EditorViewModel = (function() {
|
|
|
},
|
|
},
|
|
|
always: function(data) {
|
|
always: function(data) {
|
|
|
changeSubscription.dispose();
|
|
changeSubscription.dispose();
|
|
|
- self.complexityCheckRunning(false);
|
|
|
|
|
- },
|
|
|
|
|
- error: function(data) {
|
|
|
|
|
- self.complexityCheckRunning(false);
|
|
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|