From 7759061d4ef377a66076e3c8a49f4653a3b149b6 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Mon, 10 Dec 2012 15:14:12 +0100 Subject: [PATCH] disable "cancel build" --- assets/scripts/app/views/repo/show.coffee | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/assets/scripts/app/views/repo/show.coffee b/assets/scripts/app/views/repo/show.coffee index 399a9a9d..4d9e5e41 100644 --- a/assets/scripts/app/views/repo/show.coffee +++ b/assets/scripts/app/views/repo/show.coffee @@ -141,17 +141,19 @@ ).property('isJobTab', 'job.isFinished', 'hasPermissions') canCancelBuild: (-> - @get('isBuildTab') && @get('build.canCancel') && @get('hasPermission') + # @get('isBuildTab') && @get('build.canCancel') && @get('hasPermission') + false ).property('build.state', 'hasPermission', 'tab') + canCancelJob: (-> + # @get('isJobTab') && @get('job.canCancel') && @get('hasPermission') + false + ).property('job.state', 'hasPermission', 'tab') + canRegenerateKey: (-> @get('hasPermission') ).property('hasPermission') - canCancelJob: (-> - @get('isJobTab') && @get('job.canCancel') && @get('hasPermission') - ).property('job.state', 'hasPermission', 'tab') - isJobTab: (-> @get('tab') == 'job'