Files
InvoiceShelf/resources/scripts/components/base/BaseEstimateStatusLabel.vue
agencetwogether 3b61440e1f Complete dashboard translations & small UI improvements (#69)
* fix dropdown action Estimate Dashboard and fix translating full Dasboard page

* Update app.php

* fix locale in app.php config

* Wizard install with translation, customer portal with translation, and fixing hardcoding strings to get translation

* fixes asked to review

* fixes pint

---------

Co-authored-by: Max <contact@agencetwogether.fr>
Co-authored-by: Darko Gjorgjijoski <5760249+gdarko@users.noreply.github.com>
2024-06-05 12:07:46 +02:00

40 lines
761 B
Vue

<template>
{{ labelStatus }}
</template>
<script setup>
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const props = defineProps({
status: {
type: String,
required: false,
default: '',
},
})
const labelStatus = computed(() => {
switch (props.status) {
case 'DRAFT':
return t('estimates.draft')
case 'SENT':
return t('estimates.sent')
case 'VIEWED':
return t('estimates.viewed')
case 'EXPIRED':
return t('estimates.expired')
case 'ACCEPTED':
return t('estimates.accepted')
case 'REJECTED':
return t('estimates.rejected')
case 'DECLINED':
return t('estimates.declined')
default:
return props.status
}
})
</script>