feat: use new filter

This commit is contained in:
Javier Segarra 2024-05-29 12:12:50 +02:00
parent c5e2a40d3e
commit b7bc82aa3c
1 changed files with 7 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import { useRoute } from 'vue-router';
import { useArrayData } from 'src/composables/useArrayData';
import axios from 'axios';
import { toDateFormat, toTimeFormat } from 'src/filters/date.js';
import { toCurrency } from 'filters/index';
import { dashOrCurrency, toCurrency } from 'filters/index';
import { dashIfEmpty } from 'src/filters';
import { useWeekdayStore } from 'src/stores/useWeekdayStore';
import { useVnConfirm } from 'composables/useVnConfirm';
@ -163,11 +163,15 @@ onMounted(async () => {
</span>
<span class="color-vn-label">
{{ t('eventsPanel.price') }}:
<span class="color-vn-text"> {{ toCurrency(event.price) }}</span>
<span class="color-vn-text">
{{ dashOrCurrency(event.price)() }}</span
>
</span>
<span class="color-vn-label">
{{ t('eventsPanel.bonus') }}:
<span class="color-vn-text"> {{ toCurrency(event.bonus) }}</span>
<span class="color-vn-text">
{{ dashOrCurrency(event.bonus)() }}</span
>
</span>
<span class="color-vn-label">
{{ t('eventsPanel.m3Max') }}: