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:
agencetwogether
2024-06-05 12:07:46 +02:00
committed by GitHub
parent 3259173066
commit 3b61440e1f
89 changed files with 925 additions and 213 deletions

View File

@@ -48,6 +48,7 @@
<BaseMultiselect
v-model="customFieldStore.currentCustomField.model_type"
:options="modelTypes"
value-prop="value"
:can-deselect="false"
:invalid="v$.currentCustomField.model_type.$error"
:searchable="true"
@@ -229,11 +230,11 @@ const { t } = useI18n()
let isSaving = ref(false)
const modelTypes = reactive([
'Customer',
'Invoice',
'Estimate',
'Expense',
'Payment',
{label: t('settings.custom_fields.model_type.customer'), value: 'Customer'},
{label: t('settings.custom_fields.model_type.invoice'), value: 'Invoice'},
{label: t('settings.custom_fields.model_type.estimate'), value: 'Estimate'},
{label: t('settings.custom_fields.model_type.expense'), value: 'Expense'},
{label: t('settings.custom_fields.model_type.payment'), value: 'Payment'}
])
const dataTypes = reactive([
@@ -286,9 +287,6 @@ const isRequiredField = computed({
const rules = computed(() => {
return {
currentCustomField: {
type: {
required: helpers.withMessage(t('validation.required'), required),
},
name: {
required: helpers.withMessage(t('validation.required'), required),
},