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

@@ -156,13 +156,16 @@ import LineChart from '@/scripts/admin/components/charts/LineChart.vue'
import ChartPlaceholder from './DashboardChartPlaceholder.vue'
import abilities from '@/scripts/admin/stub/abilities'
import { useUserStore } from '@/scripts/admin/stores/user'
import { useI18n } from 'vue-i18n'
const dashboardStore = useDashboardStore()
const companyStore = useCompanyStore()
const { t } = useI18n()
const utils = inject('utils')
const userStore = useUserStore()
const years = ref(['This year', 'Previous year'])
const years = ref( [{label: t('dateRange.this_year'), value: 'This year'}, {label: t( 'dateRange.previous_year'), value:
'Previous year'}])
const selectedYear = ref('This year')
watch(

View File

@@ -21,7 +21,7 @@
:icon-component="CustomerIcon"
:loading="!dashboardStore.isDashboardDataLoaded"
route="/admin/customers"
:label="$t('dashboard.cards.customers')"
:label="(dashboardStore.stats.totalCustomerCount <= 1 ? $t('dashboard.cards.customers', 1) : $t('dashboard.cards.customers', 2))"
>
{{ dashboardStore.stats.totalCustomerCount }}
</DashboardStatsItem>
@@ -32,7 +32,7 @@
:icon-component="InvoiceIcon"
:loading="!dashboardStore.isDashboardDataLoaded"
route="/admin/invoices"
:label="$t('dashboard.cards.invoices')"
:label="(dashboardStore.stats.totalInvoiceCount <= 1 ? $t('dashboard.cards.invoices', 1) : $t('dashboard.cards.invoices', 2))"
>
{{ dashboardStore.stats.totalInvoiceCount }}
</DashboardStatsItem>
@@ -43,7 +43,7 @@
:icon-component="EstimateIcon"
:loading="!dashboardStore.isDashboardDataLoaded"
route="/admin/estimates"
:label="$t('dashboard.cards.estimates')"
:label="(dashboardStore.stats.totalEstimateCount <= 1 ? $t( 'dashboard.cards.estimates', 1) : $t('dashboard.cards.estimates', 2))"
>
{{ dashboardStore.stats.totalEstimateCount }}
</DashboardStatsItem>

View File

@@ -95,7 +95,7 @@
v-if="hasAtleastOneEstimateAbility()"
#cell-actions="{ row }"
>
<EstimateDropdown :row="row" :table="estimateTableComponent" />
<EstimateDropdown :row="row.data" :table="estimateTableComponent" />
</template>
</BaseTable>
</div>