refactor: status badge
This commit is contained in:
parent
72426aef87
commit
ec927f6e86
1 changed files with 20 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue