Permalink
Browse files

Merge pull request #42 from duizendnegen/feature/allow-pending-cancel…

…lations

Allow pending operations to be cancelled from front-end
  • Loading branch information...
leehambley committed Oct 12, 2017
2 parents 37200ed + d21f8f4 commit 6e254ef6a24b177028abc2c7922ba9cb8ca5d381
@@ -61,7 +61,8 @@ app.factory "Operation", ($filter, $injector, RepositoryCheckout) ->
@subject.endedTime() - @subject?.startedAt
Operation::cancelable = ->
@status() == 'running'
status = @status();
return status == 'running' || status == 'pending'
Operation::status = ->
if @subject.canceledAt

0 comments on commit 6e254ef

Please sign in to comment.