refactor: status badge

This commit is contained in:
Methapon2001 2024-04-11 14:17:39 +07:00
parent 72426aef87
commit ec927f6e86

View file

@ -96,13 +96,28 @@ const filter = ref('');
<div class="row items-center" style="flex-grow: 1"> <div class="row items-center" style="flex-grow: 1">
<div style="flex-grow: 1"> <div style="flex-grow: 1">
{{ <template v-if="k === 'status'">
k !== 'type' <span
? v class="q-px-sm"
: (v && $t('branchHQLabel')) || $t('branchLabel') style="
}} color: var(--teal-6);
background: hsla(var(--teal-6-hsl) / 0.08);
border-radius: 25px;
"
>
{{ v }}
</span>
</template>
<template v-else>
{{
k !== 'type'
? v
: (v && $t('branchHQLabel')) || $t('branchLabel')
}}
</template>
</div> </div>
<q-btn <q-btn
size=".75rem"
v-if="i === 0" v-if="i === 0"
outline outline
no-caps no-caps