Skip to content

Commit 16fbcf7

Browse files
committed
Improve Status code
1 parent 7b798ef commit 16fbcf7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/components/StatusItem.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ const props = defineProps(['status', 'statuses', 'statusPresentation', 'class'])
77
<template v-if="statusPresentation === 'icon'">
88
<v-img :src="`${status}.png`" :width="16" />
99
</template>
10-
<template v-if="statusPresentation === 'text'">
10+
<template v-else-if="statusPresentation === 'text'">
1111
{{ statuses[status] }}
1212
</template>
13-
<template v-if="statusPresentation === 'icon_text'">
13+
<template v-else-if="statusPresentation === 'icon_text'">
1414
<v-row align="center" density="compact">
1515
<v-col cols="auto">
1616
<v-img :src="`${status}.png`" width="16"></v-img>
@@ -20,7 +20,7 @@ const props = defineProps(['status', 'statuses', 'statusPresentation', 'class'])
2020
</v-col>
2121
</v-row>
2222
</template>
23-
<template v-if="statusPresentation === 'text_icon'">
23+
<template v-else>
2424
<v-row align="center" density="compact">
2525
<v-col :class="props.class">
2626
{{ statuses[status] }}

0 commit comments

Comments
 (0)