Add condition to packing and grouping badge colors

This commit is contained in:
William Buezas 2024-05-02 09:16:24 -03:00
parent 72ad524c68
commit 120e84f439
1 changed files with 10 additions and 2 deletions

View File

@ -250,7 +250,11 @@ onUnmounted(() => (stateStore.rightDrawer = false));
</template>
<template #body-cell-packing="{ row }">
<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) }}
<QTooltip>{{ t('lastEntries.packing') }}</QTooltip>
</QBadge>
@ -258,7 +262,11 @@ onUnmounted(() => (stateStore.rightDrawer = false));
</template>
<template #body-cell-grouping="{ row }">
<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) }}
<QTooltip>{{ t('lastEntries.grouping') }}</QTooltip>
</QBadge>