refresh series details after rename/refresh

Fixed: Refresh series details after series refresh and rename
This commit is contained in:
Mark McDowall 2013-09-29 01:48:47 -07:00
parent c2129054a0
commit bd1a9db0ef
4 changed files with 64 additions and 38 deletions

View file

@ -11,13 +11,9 @@ define(
return response;
},
isActive: function () {
return this.get('state') !== 'completed' && this.get('state') !== 'failed';
},
isSameCommand: function (command) {
if (command.name.toLocaleLowerCase() != this.get('name').toLocaleLowerCase()) {
if (command.name.toLocaleLowerCase() !== this.get('name').toLocaleLowerCase()) {
return false;
}
@ -28,6 +24,14 @@ define(
}
return true;
},
isActive: function () {
return this.get('state') !== 'completed' && this.get('state') !== 'failed';
},
isComplete: function () {
return this.get('state') === 'completed';
}
});
});