0
1
Fork 0

feat: changes

This commit is contained in:
Javier Segarra 2024-09-09 22:18:44 +02:00
parent c41d1430f7
commit 38a88bb0cc
7 changed files with 12 additions and 12 deletions

View File

@ -81,6 +81,6 @@ export default {
noData: 'Sense dades',
confirm: 'Confirmar',
delete: 'Esborrar',
reallyDelete: 'Estàs segur que vols esborrar la línia?',
confirmDelete: 'Estàs segur que vols esborrar la línia?',
emptyList: 'Llista buida'
};

View File

@ -92,7 +92,7 @@ export default {
noData: 'No data',
confirm: 'Confirm',
delete: 'Delete',
reallyDelete: 'Are you sure you want to delete the line?',
confirmDelete: 'Are you sure you want to delete the line?',
emptyList: 'Empty list',
orders: 'Orders',

View File

@ -99,7 +99,7 @@ export default {
noData: 'Sin datos',
confirm: 'Confirmar',
delete: 'Borrar',
reallyDelete: '¿Estás seguro de que quieres borrar la línea?',
confirmDelete: '¿Estás seguro de que quieres borrar la línea?',
emptyList: 'Lista vacía',
orders: 'Pedidos',

View File

@ -81,5 +81,5 @@ export default {
noData: 'Aucune donnée',
confirm: 'Confirmer',
delete: 'Effacer',
reallyDelete: 'Voulez-vous vraiment supprimer la ligne?'
confirmDelete: 'Voulez-vous vraiment supprimer la ligne?'
};

View File

@ -79,5 +79,5 @@ export default {
noData: 'Sem dados',
confirm: 'Confirme',
delete: 'Eliminar',
reallyDelete: 'Tens certeza que queres eliminar esta linha?'
confirmDelete: 'Tens certeza que queres eliminar esta linha?'
};

View File

@ -1,6 +1,5 @@
<script setup>
import { ref, onMounted } from 'vue';
import { useI18n } from 'vue-i18n';
import { storeToRefs } from 'pinia';
import { useRouter } from 'vue-router';
@ -8,7 +7,6 @@ import { useRouter } from 'vue-router';
import { useUserStore } from 'stores/user';
import { useAppStore } from 'stores/app';
const { t } = useI18n();
const router = useRouter();
const userStore = useUserStore();
const appStore = useAppStore();
@ -97,12 +95,12 @@ const logoutSupplantedUser = async () => {
<QList v-for="item in menuEssentialLinks" :key="item.id">
<QItem v-if="!item.childs" :to="`/${item.path}`">
<QItemSection>
<QItemLabel>{{ t(item.description) }}</QItemLabel>
<QItemLabel>{{ $t(item.description) }}</QItemLabel>
</QItemSection>
</QItem>
<QExpansionItem
v-if="item.childs"
:label="t(item.description)"
:label="$t(item.description)"
expand-separator
>
<QList>
@ -114,7 +112,7 @@ const logoutSupplantedUser = async () => {
>
<QItemSection>
<QItemLabel>
{{ t(subitem.description) }}
{{ $t(subitem.description) }}
</QItemLabel>
</QItemSection>
</QItem>

View File

@ -119,8 +119,10 @@ const deleteRow = id => {
dense
flat
@click.stop="
openConfirmationModal(null, t('reallyDelete'), () =>
deleteRow(row.id)
openConfirmationModal(
null,
t('confirmDelete'),
() => deleteRow(row.id)
)
"
>