mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
New: The History->Queue UI now show some elementary error information for failed imports.
This commit is contained in:
parent
981ffb09fc
commit
47089d360d
16 changed files with 167 additions and 49 deletions
|
@ -13,6 +13,7 @@ define(
|
|||
|
||||
if (this.cellValue) {
|
||||
var status = this.cellValue.get('status').toLowerCase();
|
||||
var errorMessage = (this.cellValue.get('errorMessage') || '');
|
||||
var icon = 'icon-nd-downloading';
|
||||
var title = 'Downloading';
|
||||
|
||||
|
@ -31,7 +32,29 @@ define(
|
|||
title = 'Downloaded';
|
||||
}
|
||||
|
||||
this.$el.html('<i class="{0}" title="{1}"></i>'.format(icon, title));
|
||||
if (errorMessage !== '') {
|
||||
if (status === 'completed') {
|
||||
icon = 'icon-nd-import-failed';
|
||||
title = "Import failed";
|
||||
}
|
||||
else {
|
||||
icon = 'icon-nd-download-failed';
|
||||
title = "Download failed";
|
||||
}
|
||||
this.$el.html('<i class="{0}"></i>'.format(icon));
|
||||
|
||||
this.$el.popover({
|
||||
content : errorMessage.replace(new RegExp('\r\n', 'g'), '<br/>'),
|
||||
html : true,
|
||||
trigger : 'hover',
|
||||
title : title,
|
||||
placement: 'right',
|
||||
container: this.$el
|
||||
});
|
||||
}
|
||||
else {
|
||||
this.$el.html('<i class="{0}" title="{1}"></i>'.format(icon, title));
|
||||
}
|
||||
}
|
||||
|
||||
return this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue