InstallUpdate pre-check failures should now show a nice error on the UI.

This commit is contained in:
Taloth Saldono 2015-01-25 21:55:16 +01:00
parent 8833f1ad31
commit 7ce9f416d1
7 changed files with 131 additions and 73 deletions

View file

@ -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: