Merge pull request #334 from travis-ci/allow-cancel-if-there-are-cancelable-jobs
Allow cancel if there are cancelable jobs
This commit is contained in:
commit
d896d673a8
|
@ -89,7 +89,7 @@ Build = Model.extend DurationCalculations,
|
||||||
).property('rawConfigKeys.length')
|
).property('rawConfigKeys.length')
|
||||||
|
|
||||||
canCancel: (->
|
canCancel: (->
|
||||||
@get('jobs').filter( (j) -> j.get('canCancel') ).get('length') > 0
|
@get('jobs').filterBy('canCancel').length
|
||||||
).property('jobs.@each.canCancel')
|
).property('jobs.@each.canCancel')
|
||||||
|
|
||||||
cancel: (->
|
cancel: (->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user