mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
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>
This commit is contained in:
@@ -30,6 +30,10 @@
|
||||
<span class="text-xs text-gray-500"> ({{ row.data.slug }})</span>
|
||||
</template>
|
||||
|
||||
<template #cell-model_type="{ row }">
|
||||
{{ getModelType(row.data.model_type) }}
|
||||
</template>
|
||||
|
||||
<template #cell-is_required="{ row }">
|
||||
<BaseBadge
|
||||
:bg-color="
|
||||
@@ -147,4 +151,21 @@ function addCustomField() {
|
||||
async function refreshTable() {
|
||||
table.value && table.value.refresh()
|
||||
}
|
||||
|
||||
function getModelType(type) {
|
||||
switch (type) {
|
||||
case 'Customer':
|
||||
return t('settings.custom_fields.model_type.customer')
|
||||
case 'Invoice':
|
||||
return t('settings.custom_fields.model_type.invoice')
|
||||
case 'Estimate':
|
||||
return t('settings.custom_fields.model_type.estimate')
|
||||
case 'Expense':
|
||||
return t('settings.custom_fields.model_type.expense')
|
||||
case 'Payment':
|
||||
return t('settings.custom_fields.model_type.payment')
|
||||
default:
|
||||
return type
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user