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:
Piotr Sarnacki 2015-02-25 11:53:12 +01:00
commit d896d673a8

View File

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