Add condition to packing and grouping badge colors
This commit is contained in:
parent
72ad524c68
commit
120e84f439
|
@ -250,7 +250,11 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-packing="{ row }">
|
<template #body-cell-packing="{ row }">
|
||||||
<QTd @click.stop>
|
<QTd @click.stop>
|
||||||
<QBadge class="center-content" rounded color="grey-13">
|
<QBadge
|
||||||
|
class="center-content"
|
||||||
|
rounded
|
||||||
|
:color="row.groupingMode == 'packing' ? 'grey-13' : 'black'"
|
||||||
|
>
|
||||||
{{ dashIfEmpty(row.packing) }}
|
{{ dashIfEmpty(row.packing) }}
|
||||||
<QTooltip>{{ t('lastEntries.packing') }}</QTooltip>
|
<QTooltip>{{ t('lastEntries.packing') }}</QTooltip>
|
||||||
</QBadge>
|
</QBadge>
|
||||||
|
@ -258,7 +262,11 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-grouping="{ row }">
|
<template #body-cell-grouping="{ row }">
|
||||||
<QTd @click.stop>
|
<QTd @click.stop>
|
||||||
<QBadge class="center-content" rounded color="black">
|
<QBadge
|
||||||
|
class="center-content"
|
||||||
|
rounded
|
||||||
|
:color="row.groupingMode == 'grouping' ? 'grey-13' : 'black'"
|
||||||
|
>
|
||||||
{{ dashIfEmpty(row.grouping) }}
|
{{ dashIfEmpty(row.grouping) }}
|
||||||
<QTooltip>{{ t('lastEntries.grouping') }}</QTooltip>
|
<QTooltip>{{ t('lastEntries.grouping') }}</QTooltip>
|
||||||
</QBadge>
|
</QBadge>
|
||||||
|
|
Loading…
Reference in New Issue