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', noData: 'Sense dades',
confirm: 'Confirmar', confirm: 'Confirmar',
delete: 'Esborrar', 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' emptyList: 'Llista buida'
}; };

View File

@ -92,7 +92,7 @@ export default {
noData: 'No data', noData: 'No data',
confirm: 'Confirm', confirm: 'Confirm',
delete: 'Delete', 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', emptyList: 'Empty list',
orders: 'Orders', orders: 'Orders',

View File

@ -99,7 +99,7 @@ export default {
noData: 'Sin datos', noData: 'Sin datos',
confirm: 'Confirmar', confirm: 'Confirmar',
delete: 'Borrar', 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', emptyList: 'Lista vacía',
orders: 'Pedidos', orders: 'Pedidos',

View File

@ -81,5 +81,5 @@ export default {
noData: 'Aucune donnée', noData: 'Aucune donnée',
confirm: 'Confirmer', confirm: 'Confirmer',
delete: 'Effacer', 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', noData: 'Sem dados',
confirm: 'Confirme', confirm: 'Confirme',
delete: 'Eliminar', 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> <script setup>
import { ref, onMounted } from 'vue'; import { ref, onMounted } from 'vue';
import { useI18n } from 'vue-i18n';
import { storeToRefs } from 'pinia'; import { storeToRefs } from 'pinia';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
@ -8,7 +7,6 @@ import { useRouter } from 'vue-router';
import { useUserStore } from 'stores/user'; import { useUserStore } from 'stores/user';
import { useAppStore } from 'stores/app'; import { useAppStore } from 'stores/app';
const { t } = useI18n();
const router = useRouter(); const router = useRouter();
const userStore = useUserStore(); const userStore = useUserStore();
const appStore = useAppStore(); const appStore = useAppStore();
@ -97,12 +95,12 @@ const logoutSupplantedUser = async () => {
<QList v-for="item in menuEssentialLinks" :key="item.id"> <QList v-for="item in menuEssentialLinks" :key="item.id">
<QItem v-if="!item.childs" :to="`/${item.path}`"> <QItem v-if="!item.childs" :to="`/${item.path}`">
<QItemSection> <QItemSection>
<QItemLabel>{{ t(item.description) }}</QItemLabel> <QItemLabel>{{ $t(item.description) }}</QItemLabel>
</QItemSection> </QItemSection>
</QItem> </QItem>
<QExpansionItem <QExpansionItem
v-if="item.childs" v-if="item.childs"
:label="t(item.description)" :label="$t(item.description)"
expand-separator expand-separator
> >
<QList> <QList>
@ -114,7 +112,7 @@ const logoutSupplantedUser = async () => {
> >
<QItemSection> <QItemSection>
<QItemLabel> <QItemLabel>
{{ t(subitem.description) }} {{ $t(subitem.description) }}
</QItemLabel> </QItemLabel>
</QItemSection> </QItemSection>
</QItem> </QItem>

View File

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