refactor: workflow => table row color

This commit is contained in:
puriphatt 2024-11-06 16:15:26 +07:00
parent 72adf220a8
commit 4a539fa7e4

View file

@ -422,7 +422,21 @@ watch(() => pageState.inputSearch, fetchWorkflowList);
</template>
<template #body="props">
<q-tr>
<q-tr
:class="{
'app-text-muted': props.row.status === 'INACTIVE',
'status-active': props.row.status !== 'INACTIVE',
'status-inactive': props.row.status === 'INACTIVE',
}"
:props="props"
:style="
props.rowIndex % 2 !== 0
? $q.dark.isActive
? 'background: hsl(var(--gray-11-hsl)/0.2)'
: `background: #f9fafc`
: ''
"
>
<q-td class="text-center">{{ props.rowIndex + 1 }}</q-td>
<q-td>{{ props.row.name }}</q-td>
<q-td class="text-right">{{ props.row.step.length }}</q-td>