chg: [workflows:index] UI tweak

pull/8530/head
Sami Mokaddem 2022-06-24 13:42:06 +02:00
parent 8e746960a1
commit b46c4c7ec5
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 13 additions and 3 deletions

View File

@ -16,8 +16,16 @@ if (is_null($flag)) {
$aria = __('No');
}
$classes = ['fa', "fa-$icon"];
if (!empty($field['colors'])) {
$classes[] = $icon == 'check' ? 'green' : 'grey';
} else {
$classes[] = 'black';
}
echo sprintf(
'<i class="black fa fa-%s" role="img" aria-label="%s"></i>%s',
$icon, $aria, $text
'<i class="%s" role="img" aria-label="%s"></i>%s',
implode(' ', $classes),
$aria, $text
);
?>

View File

@ -20,6 +20,7 @@
'class' => 'short',
'data_path' => 'canAbort',
'element' => 'boolean',
'colors' => true,
],
[
'name' => __('Trigger Enabled'),
@ -27,7 +28,8 @@
'class' => 'short',
'data_path' => 'disabled',
'element' => 'booleanOrNA',
'boolean_reverse' => true
'boolean_reverse' => true,
'colors' => true,
],
];