0
1
Fork 0

Add empty list

This commit is contained in:
William Buezas 2024-09-06 11:20:09 -03:00
parent e94f8c6b23
commit c53658e6e0
6 changed files with 15 additions and 2 deletions

View File

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

View File

@ -84,6 +84,7 @@ export default {
confirm: 'Confirm',
delete: 'Delete',
reallyDelete: 'Are you sure you want to delete the line?',
emptyList: 'Empty list',
orders: 'Orders',
order: 'Pending order',

View File

@ -91,6 +91,7 @@ export default {
confirm: 'Confirmar',
delete: 'Borrar',
reallyDelete: '¿Estás seguro de que quieres borrar la línea?',
emptyList: 'Lista vacía',
orders: 'Pedidos',
order: 'Pedido pendiente',

View File

@ -59,6 +59,7 @@ export default {
adminPhotos: 'Images',
adminNews: 'Gestion des nouvelles',
adminNewsDetails: 'Ajouter ou editer nouvelles',
emptyList: 'Vider la liste',
//
orderLoadedIntoBasket: 'Commande chargée dans le panier!',
loadAnOrder:

View File

@ -60,6 +60,7 @@ export default {
adminPhotos: 'Imagens',
adminNews: 'Gestão de notícias',
adminNewsDetails: 'Ajouter ou editer nouvelles',
emptyList: 'Lista vazia',
//
orderLoadedIntoBasket: 'Pedido carregado na cesta!',
loadAnOrder: 'Carregue um pedido pendente no carrinho ou inicie um novo',

View File

@ -101,7 +101,15 @@ const deleteRow = id => {
</span>
</QCardSection>
<QSeparator inset />
<QList v-for="(row, index) in rows" :key="index">
<div
v-if="!rows.length"
class="row items-center justify-center q-pa-md"
style="margin-top: 32px"
>
<QIcon class="q-mr-md" name="block" size="sm" />
<span>{{ t('emptyList') }}</span>
</div>
<QList v-else v-for="(row, index) in rows" :key="index">
<QItem v-if="row">
<QItemSection v-if="canDeleteItems" avatar>
<QBtn