Also reset "otherRequestInProgress" if the request fails
This commit is contained in:
1 parent
3eab5503f1
commit
488eb1fac3
1 file changed
+3
@@ -118,6 +118,9 @@ function GcodeFilesViewModel(printerStateViewModel, loginStateViewModel) {
|
||||
success: function(response) {
|
||||
self.fromResponse(response, filenameToFocus, locationToFocus);
|
||||
self._otherRequestInProgress = false;
|
||||
},
|
||||
error: function() {
|
||||
self._otherRequestInProgress = false;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user