Allow to cancel jobs after they're started

This commit is contained in:
Piotr Sarnacki 2013-08-12 17:35:12 +02:00
parent 0217b20943
commit c9e677fd86

View File

@ -73,7 +73,7 @@ require 'travis/model'
).property('config', 'build.rawConfigKeys.length') ).property('config', 'build.rawConfigKeys.length')
canCancel: (-> canCancel: (->
@get('state') == 'created' !@get('isFinished')
).property('state') ).property('state')
cancel: (-> cancel: (->