mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
InstallUpdate pre-check failures should now show a nice error on the UI.
This commit is contained in:
parent
8833f1ad31
commit
7ce9f416d1
7 changed files with 131 additions and 73 deletions
|
@ -15,12 +15,15 @@ module.exports = Marionette.ItemView.extend({
|
|||
id : this.model.id,
|
||||
hideAfter : 0
|
||||
};
|
||||
|
||||
var isManual = this.model.get('manual');
|
||||
|
||||
switch (this.model.get('state')) {
|
||||
case 'completed':
|
||||
message.hideAfter = 4;
|
||||
break;
|
||||
case 'failed':
|
||||
message.hideAfter = 4;
|
||||
message.hideAfter = isManual ? 10 : 4;
|
||||
message.type = 'error';
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue