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