mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 17:59:14 +00:00
removed some false/positive error message from the UI.
This commit is contained in:
parent
e2d17ac109
commit
53bb6254fd
2 changed files with 11 additions and 5 deletions
|
@ -68,7 +68,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
if (xmlHttpRequest.status === 0 && xmlHttpRequest.readyState === 0) {
|
if (xmlHttpRequest.status === 0 && xmlHttpRequest.readyState === 0) {
|
||||||
message.message = 'NzbDrone Server Not Reachable. make sure NzbDrone is running.';
|
return false;
|
||||||
|
//message.message = 'NzbDrone Server Not Reachable. make sure NzbDrone is running.';
|
||||||
} else {
|
} else {
|
||||||
message.message = "[{0}] {1} : {2}".format(ajaxOptions.type, xmlHttpRequest.statusText, ajaxOptions.url);
|
message.message = "[{0}] {1} : {2}".format(ajaxOptions.type, xmlHttpRequest.statusText, ajaxOptions.url);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,10 @@ define(['app', 'Config', 'Commands/CommandController', 'Shared/Messenger'], func
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
commandPromise.fail(function () {
|
commandPromise.fail(function (options) {
|
||||||
|
if (options.readyState === 0 || options.status === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (self.model.get('errorMessage')) {
|
if (self.model.get('errorMessage')) {
|
||||||
NzbDrone.Shared.Messenger.show({
|
NzbDrone.Shared.Messenger.show({
|
||||||
message: self.model.get('errorMessage'),
|
message: self.model.get('errorMessage'),
|
||||||
|
@ -62,9 +65,11 @@ define(['app', 'Config', 'Commands/CommandController', 'Shared/Messenger'], func
|
||||||
});
|
});
|
||||||
|
|
||||||
commandPromise.always(function () {
|
commandPromise.always(function () {
|
||||||
|
if (!self.isClosed) {
|
||||||
self.$el.removeClass('disabled');
|
self.$el.removeClass('disabled');
|
||||||
self.ui.icon.removeClass('icon-spinner icon-spin');
|
self.ui.icon.removeClass('icon-spinner icon-spin');
|
||||||
self.idle = true;
|
self.idle = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue