diff --git a/module/execution/ui/task.html.php b/module/execution/ui/task.html.php
index ba7c5fdc24..afc840c410 100644
--- a/module/execution/ui/task.html.php
+++ b/module/execution/ui/task.html.php
@@ -180,12 +180,13 @@ if($canBatchAction)
);
}
- if($canBatchClose || $canBatchCancel)
+ if($canBatchClose || $canBatchCancel || $canBatchEdit)
{
+ $editClass = $canBatchEdit ? 'batch-btn' : 'disabled';
$footToolbar['items'][] = array(
'type' => 'btn-group',
'items' => array(
- array('text' => $lang->edit, 'className' => 'batch-btn','btnType' => 'primary', 'data-url' => createLink('task', 'batchEdit', "executionID={$executionID}")),
+ array('text' => $lang->edit, 'class' => "btn primary size-sm {$editClass}", 'btnType' => 'primary', 'data-url' => createLink('task', 'batchEdit', "executionID={$executionID}")),
array('caret' => 'up', 'btnType' => 'primary', 'url' => '#navActions', 'data-toggle' => 'dropdown', 'data-placement' => 'top-start'),
)
);