From 6542a29b033d98cdd532de8de5cc10b0cd68b24e Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Tue, 30 May 2023 15:41:40 +0800 Subject: [PATCH] * Change no batch edit access style. --- module/execution/ui/task.html.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'), ) );