refactor: simplify status badge color mapping in request list
This commit is contained in:
parent
92c0545368
commit
5e3c04be8e
1 changed files with 7 additions and 9 deletions
|
|
@ -224,15 +224,13 @@ function getEmployeeName(
|
||||||
hide-kebab-delete
|
hide-kebab-delete
|
||||||
use-cancel
|
use-cancel
|
||||||
:badge-color="
|
:badge-color="
|
||||||
props.row.requestDataStatus === RequestDataStatus.Pending
|
{
|
||||||
? '--orange-5-hsl'
|
[RequestDataStatus.Pending]: '--orange-5-hsl',
|
||||||
: props.row.requestDataStatus === RequestDataStatus.Canceled
|
[RequestDataStatus.Ready]: '--yellow-6-hsl',
|
||||||
? '--red-5-hsl'
|
[RequestDataStatus.InProgress]: '--blue-6-hsl',
|
||||||
: props.row.requestDataStatus === RequestDataStatus.InProgress
|
[RequestDataStatus.Completed]: '--green-8-hsl',
|
||||||
? '--blue-6-hsl'
|
[RequestDataStatus.Canceled]: '--red-5-hsl',
|
||||||
: props.row.requestDataStatus === RequestDataStatus.Completed
|
}[props.row.requestDataStatus]
|
||||||
? '--green-8-hsl'
|
|
||||||
: '--orange-5-hsl'
|
|
||||||
"
|
"
|
||||||
:urgent="props.row.quotation.urgent"
|
:urgent="props.row.quotation.urgent"
|
||||||
:code="props.row.code"
|
:code="props.row.code"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue