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

@@ -108,7 +108,7 @@
<template #cell-status="{ row }">
<BaseEstimateStatusBadge :status="row.data.status" class="px-3 py-1">
{{ row.data.status }}
<BaseEstimateStatusLabel :status="row.data.status" />
</BaseEstimateStatusBadge>
</template>
@@ -156,12 +156,12 @@ let showFilters = ref(false)
let isFetchingInitialData = ref(true)
const status = ref([
'DRAFT',
'SENT',
'VIEWED',
'EXPIRED',
'ACCEPTED',
'REJECTED',
{label: t('estimates.draft'), value: 'DRAFT'},
{label: t('estimates.sent'), value: 'SENT'},
{label: t('estimates.viewed'), value: 'VIEWED'},
{label: t('estimates.expired'), value: 'EXPIRED'},
{label: t('estimates.accepted'), value: 'ACCEPTED'},
{label: t('estimates.rejected'), value: 'REJECTED'},
])
const filters = reactive({
status: '',
@@ -240,7 +240,7 @@ function toggleFilter() {
async function fetchData({ page, sort }) {
let data = {
status: filters.status,
status: filters.status.value,
estimate_number: filters.estimate_number,
from_date: filters.from_date,
to_date: filters.to_date,