Allow to cancel build on pull permissions
This commit is contained in:
parent
46e04c4f3f
commit
6f3d291d3e
|
@ -215,16 +215,16 @@ Travis.reopen
|
|||
).property('jobIdForLog')
|
||||
|
||||
canCancelBuild: (->
|
||||
@get('displayCancelBuild') && @get('hasPushPermission')
|
||||
).property('displayCancelBuild', 'hasPushPermission')
|
||||
@get('displayCancelBuild') && @get('hasPermission')
|
||||
).property('displayCancelBuild', 'hasPermission')
|
||||
|
||||
displayCancelBuild: (->
|
||||
@get('isBuildTab') && @get('build.canCancel')
|
||||
).property('isBuildTab', 'build.canCancel')
|
||||
|
||||
canCancelJob: (->
|
||||
@get('displayCancelJob') && @get('hasPushPermission')
|
||||
).property('displayCancelJob', 'hasPushPermission')
|
||||
@get('displayCancelJob') && @get('hasPermission')
|
||||
).property('displayCancelJob', 'hasPermission')
|
||||
|
||||
displayCancelJob: (->
|
||||
@get('isJobTab') && @get('job.canCancel')
|
||||
|
|
Loading…
Reference in New Issue
Block a user