Allow to cancel build if any of the jobs can be cancelled
This commit is contained in:
parent
7c3ea5b7bc
commit
e189bc607b
|
@ -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