Strengthen the dependencies on canCancel in build
For some reason it sometimes is not refreshed correctly without these additional dependencies.
This commit is contained in:
parent
20e8a47576
commit
707c77aeee
|
@ -120,7 +120,7 @@ Build.reopen({
|
||||||
|
|
||||||
canCancel: function() {
|
canCancel: function() {
|
||||||
return this.get('jobs').filterBy('canCancel').length;
|
return this.get('jobs').filterBy('canCancel').length;
|
||||||
}.property('jobs.@each.canCancel'),
|
}.property('jobs.@each.canCancel', 'jobs', 'jobs.[]'),
|
||||||
|
|
||||||
canRestart: Ember.computed.alias('isFinished'),
|
canRestart: Ember.computed.alias('isFinished'),
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ export default Model.extend(DurationCalculations, {
|
||||||
|
|
||||||
canCancel: function() {
|
canCancel: function() {
|
||||||
return !this.get('isFinished');
|
return !this.get('isFinished');
|
||||||
}.property('state'),
|
}.property('isFinished'),
|
||||||
|
|
||||||
canRestart: Ember.computed.alias('isFinished'),
|
canRestart: Ember.computed.alias('isFinished'),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user