diff --git a/src/components/common/VnForm.vue b/src/components/common/VnForm.vue index b918c9a7..bb78317c 100644 --- a/src/components/common/VnForm.vue +++ b/src/components/common/VnForm.vue @@ -82,7 +82,7 @@ const props = defineProps({ } }); -const emit = defineEmits(['onDataSaved']); +const emit = defineEmits(['onDataSaved', 'onDataFetched']); const { t } = useI18n(); const jApi = inject('jApi'); @@ -133,6 +133,7 @@ const fetchFormData = async () => { formData.value = { ...modelInfo.value.data[0] }; loading.value = false; + emit('onDataFetched', formData.value); }; const onSubmitSuccess = () => { @@ -200,10 +201,7 @@ defineExpose({ + diff --git a/src/components/ui/VnList.vue b/src/components/ui/VnList.vue new file mode 100644 index 00000000..aeb27922 --- /dev/null +++ b/src/components/ui/VnList.vue @@ -0,0 +1,38 @@ + + + diff --git a/src/components/ui/VnSearchBar.vue b/src/components/ui/VnSearchBar.vue index 375e9e8f..c4de44f3 100644 --- a/src/components/ui/VnSearchBar.vue +++ b/src/components/ui/VnSearchBar.vue @@ -70,6 +70,7 @@ onMounted(() => { bg-color="white" is-outlined :clearable="false" + class="searchbar" > + en-US: search: Search diff --git a/src/css/responsive.scss b/src/css/responsive.scss index 5e170ab8..38f75a4b 100644 --- a/src/css/responsive.scss +++ b/src/css/responsive.scss @@ -1,5 +1,17 @@ @mixin mobile { - @media screen and (max-width: 1023px) { - @content; - } + @media screen and (max-width: 768px) { + @content; + } +} + +@mixin tablet { + @media screen and (min-width: 769px) and (max-width: 1024px) { + @content; + } +} + +@mixin desktop { + @media screen and (min-width: 1025px) { + @content; + } } diff --git a/src/i18n/ca-ES/index.js b/src/i18n/ca-ES/index.js index c21533d9..41f2a1a8 100644 --- a/src/i18n/ca-ES/index.js +++ b/src/i18n/ca-ES/index.js @@ -51,34 +51,59 @@ export default { of: 'de', // Sections titles - Home: 'Inici', - Orders: 'Comandes', - Ticket: `Detall de l'encarrec`, - 'Pending orders': 'Comandes pendents', - 'Last orders': 'Comandes confirmades', - Invoices: 'Factures', - Basket: 'Cistella', - Catalog: 'Catàleg', - Administration: 'Administració', - 'Control panel': 'Panell de control', - Users: 'Usuaris', - Connections: 'Connexions', - Visits: 'Visites', - News: 'Gestió de noticies', - Photos: 'Imatges', - Images: 'Imatges', - Items: 'Articles', - Agencies: 'Agències', - Reports: 'Informes', - Configuration: 'Configuració', - Shelves: 'Prestatgeries', - Account: 'Compte', - Addresses: 'Adreces', - OrderSummary: 'Resum de la comanda', - Checkout: `Configurar l'encarrec`, - 'Address details': 'Configuració', - 'Admin news details': `Afegir o editar notícia`, - 'Access log': 'Registre d’accés', + titles: { + Home: 'Inici', + Orders: 'Comandes', + Ticket: `Detall de l'encarrec`, + 'Pending orders': 'Comandes pendents', + 'Last orders': 'Comandes confirmades', + Invoices: 'Factures', + Basket: 'Cistella', + Catalog: 'Catàleg', + Administration: 'Administració', + 'Control panel': 'Panell de control', + Users: 'Usuaris', + Connections: 'Connexions', + Visits: 'Visites', + News: 'Gestió de noticies', + Photos: 'Imatges', + Images: 'Imatges', + Items: 'Articles', + Agencies: 'Paquets per agència', + Reports: 'Informes', + Configuration: 'Configuració', + Shelves: 'Prestatgeries', + Account: 'Compte', + Addresses: 'Adreces', + OrderSummary: 'Resum de la comanda', + Checkout: `Configurar l'encarrec`, + 'Address details': 'Configuració', + 'Admin news details': `Afegir o editar notícia`, + 'Access log': 'Registre d’accés' + }, + menuTitles: { + Home: 'Inici', + Orders: 'Comandes', + Basket: 'Cistella', + Catalog: 'Catàleg', + Administration: 'Administració', + Agencies: 'Agències', + Reports: 'Informes', + Shelves: 'Prestatgeries', + Configuration: 'Configuració', + 'Pending orders': 'Pendents', + 'Last orders': 'Confirmades', + Invoices: 'Factures', + 'Control panel': 'Panell de control', + Users: 'Usuaris', + Connections: 'Connexions', + Visits: 'Visites', + News: 'Gestió de notícies', + Photos: 'Imatges', + Items: 'Articles', + Account: 'Compte', + Addresses: 'Adreces' + }, // orderLoadedIntoBasket: 'Comanda carregada a la cistella!', loadAnOrder: @@ -94,6 +119,7 @@ export default { confirmDelete: 'Estàs segur que vols esborrar la línia?', emptyList: 'Llista buida', logInAsGuest: `Accedir com a convidat`, + logIn: 'Iniciar sessió', haveForgottenPassword: '¿Has oblidat la teva contrasenya?', signUp: 'Registrar-me', notACustomerYet: `Encara no ets client?`, @@ -106,6 +132,8 @@ export default { shoppingCart: 'Cistella de la compra', available: 'Disponible', minQuantity: 'Quantitat mínima', + introduceSearchTerm: 'Introdueix un terme de cerca', + noOrdersFound: `No s'han trobat comandes`, // Image related translations 'Cant lock cache': 'No es pot bloquejar la memòria cau', 'Bad file format': 'Format de fitxer no reconegut', diff --git a/src/i18n/en-US/index.js b/src/i18n/en-US/index.js index 6938af07..47a25a50 100644 --- a/src/i18n/en-US/index.js +++ b/src/i18n/en-US/index.js @@ -63,34 +63,60 @@ export default { }, // Sections titles - Home: 'Home', - Orders: 'Orders', - Ticket: 'Detalle del pedido', - 'Pending orders': 'Pending orders', - 'Last orders': 'Confirmed orders', - Invoices: 'Invoices', - Basket: 'Basket', - Catalog: 'Catalog', - Administration: 'Administration', - 'Control panel': 'Control panel', - Users: 'Users', - Connections: 'Connections', - Visits: 'Visits', - News: 'News management', - Photos: 'Images', - Images: 'Images', - Items: 'Items', - Agencies: 'Agencies', - Reports: 'Reports', - Configuration: 'Configuration', - Shelves: 'Shelves', - Account: 'Account', - Addresses: 'Addresses', - OrderSummary: 'Order summary', - Checkout: 'Configure order', - 'Address details': 'Configuration', - 'Admin news details': 'Add or edit new', - 'Access log': 'Access log', + titles: { + Home: 'Home', + Orders: 'Orders', + Ticket: 'Detalle del pedido', + 'Pending orders': 'Pending orders', + 'Last orders': 'Confirmed orders', + Invoices: 'Invoices', + Basket: 'Basket', + Catalog: 'Catalog', + Administration: 'Administration', + 'Control panel': 'Control panel', + Users: 'Users', + Connections: 'Connections', + Visits: 'Visits', + News: 'News management', + Photos: 'Images', + Images: 'Images', + Items: 'Items', + Agencies: 'Bundles by agency', + Reports: 'Reports', + Configuration: 'Configuration', + Shelves: 'Shelves', + Account: 'Account', + Addresses: 'Addresses', + OrderSummary: 'Order summary', + Checkout: 'Configure order', + 'Address details': 'Configuration', + 'Admin news details': 'Add or edit new', + 'Access log': 'Access log' + }, + menuTitles: { + Home: 'Home', + Orders: 'Orders', + Basket: 'Basket', + Catalog: 'Catalog', + Administration: 'Administration', + Agencies: 'Agencies', + Reports: 'Reports', + Shelves: 'Shelves', + Configuration: 'Configuration', + 'Pending orders': 'Pending', + 'Last orders': 'Confirmed', + Invoices: 'Invoices', + 'Control panel': 'Control panel', + Users: 'Users', + Connections: 'Connections', + Visits: 'Visits', + News: 'News', + Photos: 'Images', + Items: 'Items', + Account: 'Account', + Addresses: 'Addresses' + }, + // orderLoadedIntoBasket: 'Order loaded into basket!', loadAnOrder: 'Please load a pending order to the cart or start a new one', @@ -127,7 +153,8 @@ export default { save: 'Save', cancel: 'Cancel', of: 'of', - loginAsGuest: 'Login as guest', + logInAsGuest: 'Login as guest', + logIn: 'Log in', haveForgottenPassword: 'Have you forgotten your password?', signUp: 'Sign up', notACustomerYet: 'Not a customer yet?', @@ -139,6 +166,8 @@ export default { shoppingCart: 'Shopping cart', available: 'Available', minQuantity: 'Minimum quantity', + introduceSearchTerm: 'Enter a search term', + noOrdersFound: 'No orders found', // Image related translations 'Cant lock cache': 'The cache could not be blocked', 'Bad file format': 'Unrecognized file format', diff --git a/src/i18n/es-ES/index.js b/src/i18n/es-ES/index.js index d826b2d8..d1fbdd7a 100644 --- a/src/i18n/es-ES/index.js +++ b/src/i18n/es-ES/index.js @@ -60,34 +60,60 @@ export default { }, // Sections titles - Home: 'Inicio', - Orders: 'Pedidos', - Ticket: 'Pedido', - 'Pending orders': 'Pedidos pendientes', - 'Last orders': 'Pedidos confirmados', - Invoices: 'Facturas', - Basket: 'Cesta', - Catalog: 'Catálogo', - Administration: 'Administración', - 'Control panel': 'Panel de control', - Users: 'Usuarios', - Connections: 'Conexiones', - Visits: 'Visitas', - News: 'Gestión de noticias', - Photos: 'Imágenes', - Images: 'Imágenes', - Items: 'Artículos', - Agencies: 'Agencias', - Reports: 'Informes', - Configuration: 'Configuración', - Shelves: 'Estanterías', - Account: 'Cuenta', - Addresses: 'Direcciones', - OrderSummary: 'Resumen del pedido', - Checkout: 'Configurar pedido', - 'Address details': 'Configuración', - 'Admin news details': 'Añadir o editar noticia', - 'Access log': 'Registro de accesos', + titles: { + Home: 'Inicio', + Orders: 'Pedidos', + Ticket: 'Pedido', + 'Pending orders': 'Pedidos pendientes', + 'Last orders': 'Pedidos confirmados', + Invoices: 'Facturas', + Basket: 'Cesta', + Catalog: 'Catálogo', + Administration: 'Administración', + 'Control panel': 'Panel de control', + Users: 'Usuarios', + Connections: 'Conexiones', + Visits: 'Visitas', + News: 'Gestión de noticias', + Photos: 'Imágenes', + Images: 'Imágenes', + Items: 'Artículos', + Agencies: 'Bultos por agencia', + Reports: 'Informes', + Configuration: 'Configuración', + Shelves: 'Estanterías', + Account: 'Cuenta', + Addresses: 'Direcciones', + OrderSummary: 'Resumen del pedido', + Checkout: 'Configurar pedido', + 'Address details': 'Configuración', + 'Admin news details': 'Añadir o editar noticia', + 'Access log': 'Registro de accesos' + }, + menuTitles: { + Home: 'Inicio', + Orders: 'Pedidos', + Basket: 'Cesta', + Catalog: 'Catálogo', + Administration: 'Administración', + Agencies: 'Agencias', + Reports: 'Informes', + Shelves: 'Estanterías', + Configuration: 'Configuración', + 'Pending orders': 'Pendientes', + 'Last orders': 'Confirmados', + Invoices: 'Facturas', + 'Control panel': 'Panel de control', + Users: 'Usuarios', + Connections: 'Conexiones', + Visits: 'Visitas', + News: 'Noticias', + Photos: 'Imágenes', + Items: 'Artículos', + Account: 'Cuenta', + Addresses: 'Direcciones' + }, + // orderLoadedIntoBasket: '¡Pedido cargado en la cesta!', loadAnOrder: @@ -138,6 +164,8 @@ export default { shoppingCart: 'Cesta de la compra', available: 'Disponible', minQuantity: 'Cantidad mínima', + introduceSearchTerm: 'Introduce un término de búsqueda', + noOrdersFound: 'No se encontrado pedidos', // Image related translations 'Cant lock cache': 'La caché no pudo ser bloqueada', 'Bad file format': 'Formato de archivo no reconocido', diff --git a/src/i18n/fr-FR/index.js b/src/i18n/fr-FR/index.js index 549eae58..57590f43 100644 --- a/src/i18n/fr-FR/index.js +++ b/src/i18n/fr-FR/index.js @@ -51,34 +51,60 @@ export default { of: 'de', // Sections titles - Home: 'Accueil', - Orders: 'Commandes', - Ticket: 'Détail de la commande', - 'Pending orders': 'Commandes en attente', - 'Last orders': 'Commandes confirmées', - Invoices: 'Factures', - Basket: 'Panier', - Catalog: 'Catalogue', - Administration: 'Administration', - 'Control panel': 'Panneau de configuration', - Users: 'Utilisateurs', - Connections: 'Connexions', - Visits: 'Visites', - News: 'Gestion des nouvelles', - Photos: 'Images', - Images: 'Images', - Items: 'Articles', - Agencies: 'Agences', - Reports: 'Rapports', - Configuration: 'Configuration', - Shelves: 'Étagères', - Account: 'Compte', - Addresses: 'Adresses', - OrderSummary: 'Résumé de la commande', - Checkout: 'Configurer la commande', - 'Address details': 'Configuration', - 'Admin news details': 'Ajouter ou éditer une nouvelle', - 'Access log': "Journal d'accès", + titles: { + Home: 'Accueil', + Orders: 'Commandes', + Ticket: 'Détail de la commande', + 'Pending orders': 'Commandes en attente', + 'Last orders': 'Commandes confirmées', + Invoices: 'Factures', + Basket: 'Panier', + Catalog: 'Catalogue', + Administration: 'Administration', + 'Control panel': 'Panneau de configuration', + Users: 'Utilisateurs', + Connections: 'Connexions', + Visits: 'Visites', + News: 'Gestion des nouvelles', + Photos: 'Images', + Images: 'Images', + Items: 'Articles', + Agencies: 'Liste par agence', + Reports: 'Rapports', + Configuration: 'Configuration', + Shelves: 'Étagères', + Account: 'Compte', + Addresses: 'Adresses', + OrderSummary: 'Résumé de la commande', + Checkout: 'Configurer la commande', + 'Address details': 'Configuration', + 'Admin news details': 'Ajouter ou éditer une nouvelle', + 'Access log': "Journal d'accès" + }, + menuTitles: { + Home: 'Accueil', + Orders: 'Commandes', + Basket: 'Panier', + Catalog: 'Catalogue', + Administration: 'Administration', + Agencies: 'Agences', + Reports: 'Rapports', + Shelves: 'Étagères', + Configuration: 'Configuration', + 'Pending orders': 'En attente', + 'Last orders': 'Confirmées', + Invoices: 'Factures', + 'Control panel': 'Panneau de configuration', + Users: 'Utilisateurs', + Connections: 'Connexions', + Visits: 'Visites', + News: 'Nouvelles', + Photos: 'Images', + Items: 'Articles', + Account: 'Compte', + Addresses: 'Adresses' + }, + // orderLoadedIntoBasket: 'Commande chargée dans le panier!', loadAnOrder: @@ -94,6 +120,7 @@ export default { emptyList: 'Vider la liste', confirmDelete: 'Voulez-vous vraiment supprimer la ligne?', logInAsGuest: `Entrez en tant qu'invité`, + logIn: 'Se connecter', haveForgottenPassword: 'Avez-vous oublié votre mot de passe?', signUp: `S'inscrire`, notACustomerYet: `Pas encore client?`, @@ -106,6 +133,8 @@ export default { shoppingCart: 'Panier', available: 'Disponible', minQuantity: 'Quantité minimum', + introduceSearchTerm: 'Entrez un terme de recherche', + noOrdersFound: 'Aucune commande trouvée', // Image related translations 'Cant lock cache': "Le cache n'a pas pu être verrouillé", 'Bad file format': 'Format de fichier non reconnu', diff --git a/src/i18n/pt-PT/index.js b/src/i18n/pt-PT/index.js index 80b9a222..18b5cdc2 100644 --- a/src/i18n/pt-PT/index.js +++ b/src/i18n/pt-PT/index.js @@ -50,34 +50,59 @@ export default { }, of: 'de', // Sections titles - Home: 'Início', - Orders: 'Pedidos', - Ticket: 'Detalhe do pedido', - 'Pending orders': 'Pedidos pendentes', - 'Last orders': 'Pedidos confirmados', - Invoices: 'Faturas', - Basket: 'Carrinho', - Catalog: 'Catálogo', - Administration: 'Administração', - 'Control panel': 'Painel de controle', - Users: 'Usuários', - Connections: 'Conexões', - Visits: 'Visitas', - News: 'Gestão de noticias', - Photos: 'Imagens', - Images: 'Imagens', - Items: 'Artigos', - Agencies: 'Agências', - Reports: 'Informes', - Configuration: 'Configuração', - Shelves: 'Estantes', - Account: 'Conta', - Addresses: 'Moradas', - OrderSummary: 'Resumo da encomenda', - Checkout: 'Configurar encomenda', - 'Address details': 'Configuração', - 'Admin news details': 'Adicionar ou editar notícia', - 'Access log': 'Registo de acessos', + titles: { + Home: 'Início', + Orders: 'Pedidos', + Ticket: 'Detalhe do pedido', + 'Pending orders': 'Pedidos pendentes', + 'Last orders': 'Pedidos confirmados', + Invoices: 'Faturas', + Basket: 'Carrinho', + Catalog: 'Catálogo', + Administration: 'Administração', + 'Control panel': 'Painel de controle', + Users: 'Usuários', + Connections: 'Conexões', + Visits: 'Visitas', + News: 'Gestão de noticias', + Photos: 'Imagens', + Images: 'Imagens', + Items: 'Artigos', + Agencies: 'Bultos por agencia', + Reports: 'Informes', + Configuration: 'Configuração', + Shelves: 'Estantes', + Account: 'Conta', + Addresses: 'Moradas', + OrderSummary: 'Resumo da encomenda', + Checkout: 'Configurar encomenda', + 'Address details': 'Configuração', + 'Admin news details': 'Adicionar ou editar notícia', + 'Access log': 'Registo de acessos' + }, + menuTitles: { + Home: 'Início', + Orders: 'Pedidos', + Basket: 'Carrinho', + Catalog: 'Catálogo', + Administration: 'Administração', + Agencies: 'Agências', + Reports: 'Informes', + Shelves: 'Estantes', + Configuration: 'Configuração', + 'Pending orders': 'Pendentes', + 'Last orders': 'Confirmados', + Invoices: 'Faturas', + 'Control panel': 'Painel de controle', + Users: 'Usuários', + Connections: 'Conexões', + Visits: 'Visitas', + News: 'Notícias', + Photos: 'Imagens', + Items: 'Artigos', + Account: 'Conta', + Addresses: 'Moradas' + }, // orderLoadedIntoBasket: 'Pedido carregado na cesta!', loadAnOrder: 'Carregue um pedido pendente no carrinho ou inicie um novo', @@ -92,6 +117,7 @@ export default { confirmDelete: 'Tens certeza que queres eliminar esta linha?', emptyList: 'Lista vazia', logInAsGuest: 'Entrar como convidado', + logIn: 'Iniciar sessão', haveForgottenPassword: 'Esqueceu a senha?', signUp: 'Registar', notACustomerYet: 'Ainda não é cliente?', @@ -104,6 +130,8 @@ export default { shoppingCart: 'Cesta da compra', available: 'Disponível', minQuantity: 'Quantidade mínima', + introduceSearchTerm: 'Digite um termo de pesquisa', + noOrdersFound: 'Nenhum pedido encontrado', // Image related translations 'Cant lock cache': 'O cache não pôde ser bloqueado', 'Bad file format': 'Formato de arquivo inválido', diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index b137e175..94daa6f8 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -1,5 +1,5 @@ @@ -90,15 +97,17 @@ const logoutSupplantedUser = async () => { /> - + - {{ $t(item.description) }} + {{ + $t(`menuTitles.${item.description}`) + }} @@ -110,7 +119,9 @@ const logoutSupplantedUser = async () => { > - {{ $t(subitem.description) }} + {{ + $t(`menuTitles.${subitem.description}`) + }} @@ -118,7 +129,7 @@ const logoutSupplantedUser = async () => { - + diff --git a/src/pages/Account/AccountConfig.vue b/src/pages/Account/AccountConfig.vue index 92774f60..631073ab 100644 --- a/src/pages/Account/AccountConfig.vue +++ b/src/pages/Account/AccountConfig.vue @@ -53,6 +53,10 @@ const updateUserNickname = async nickname => { } }; +const formatMailData = data => { + data.isToBeMailed = Boolean(data.isToBeMailed); +}; + onMounted(() => fetchLanguagesSql()); @@ -116,18 +120,20 @@ onMounted(() => fetchLanguagesSql()); - + { - + diff --git a/src/pages/Admin/ConnectionsView.vue b/src/pages/Admin/ConnectionsView.vue index eec50614..175f32c7 100644 --- a/src/pages/Admin/ConnectionsView.vue +++ b/src/pages/Admin/ConnectionsView.vue @@ -4,6 +4,7 @@ import { useRouter } from 'vue-router'; import { useI18n } from 'vue-i18n'; import CardList from 'src/components/ui/CardList.vue'; +import VnList from 'src/components/ui/VnList.vue'; import { date as qdate } from 'quasar'; import { useUserStore } from 'stores/user'; @@ -80,15 +81,12 @@ onBeforeUnmount(() => clearInterval(intervalId.value)); - - + clearInterval(intervalId.value)); -
{{ connections }}
-
+
diff --git a/src/pages/Admin/ItemsView.vue b/src/pages/Admin/ItemsView.vue index bbcefc60..27d9dce6 100644 --- a/src/pages/Admin/ItemsView.vue +++ b/src/pages/Admin/ItemsView.vue @@ -1,15 +1,14 @@ - diff --git a/src/pages/Ecomerce/InvoicesView.vue b/src/pages/Ecomerce/InvoicesView.vue index fb42b959..76599998 100644 --- a/src/pages/Ecomerce/InvoicesView.vue +++ b/src/pages/Ecomerce/InvoicesView.vue @@ -114,15 +114,9 @@ onMounted(async () => { {{ t('downloadInvoicePdf') }} - + - {{ t('requestTheInvoiceToComercial') }} + {{ t('notDownloadable') }} diff --git a/src/pages/Ecomerce/OrdersView.vue b/src/pages/Ecomerce/OrdersView.vue index f801b090..de2b462e 100644 --- a/src/pages/Ecomerce/OrdersView.vue +++ b/src/pages/Ecomerce/OrdersView.vue @@ -6,6 +6,7 @@ import { useI18n } from 'vue-i18n'; import CardList from 'src/components/ui/CardList.vue'; import VnInput from 'src/components/common/VnInput.vue'; import VnConfirm from 'src/components/ui/VnConfirm.vue'; +import VnList from 'src/components/ui/VnList.vue'; import useNotify from 'src/composables/useNotify.js'; import { currency, formatDateTitle } from 'src/lib/filters.js'; @@ -90,13 +91,7 @@ const onConfirmPay = async () => { -
- {{ t('noOrdersFound') }} -
- + { {{ order.agency }} - + {
@@ -172,7 +169,6 @@ const onConfirmPay = async () => { en-US: startOrder: Start order - noOrdersFound: No orders found makePayment: Make payment balance: 'Balance:' paymentInfo: >- @@ -184,7 +180,6 @@ en-US: amountError: The amount must be a positive number less than or equal to the outstanding amount es-ES: startOrder: Empezar pedido - noOrdersFound: No se encontrado pedidos makePayment: Realizar pago balance: 'Saldo:' paymentInfo: >- @@ -197,7 +192,6 @@ es-ES: amountError: La cantidad debe ser un número positivo e inferior o igual al importe pendiente ca-ES: startOrder: Començar encàrrec - noOrdersFound: No s'han trobat comandes makePayment: Realitzar pagament balance: 'Saldo:' paymentInfo: >- @@ -210,7 +204,6 @@ ca-ES: amountError: La quantitat ha de ser un nombre positiu i inferior o igual a l'import pendent fr-FR: startOrder: Acheter - noOrdersFound: Aucune commande trouvée makePayment: Effectuer un paiement balance: 'Balance:' paymentInfo: >- @@ -223,7 +216,6 @@ fr-FR: amountError: La quantité doit être un neméro positif et inférieur ou égal à la somme restant à payer pt-PT: startOrder: Iniciar encomenda - noOrdersFound: Nenhum pedido encontrado makePayment: Realizar pagamento balance: 'Saldo:' paymentInfo: >- diff --git a/src/pages/Ecomerce/PendingOrders.vue b/src/pages/Ecomerce/PendingOrders.vue index 38053da8..9b5966df 100644 --- a/src/pages/Ecomerce/PendingOrders.vue +++ b/src/pages/Ecomerce/PendingOrders.vue @@ -4,6 +4,8 @@ import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; import CardList from 'src/components/ui/CardList.vue'; +import VnList from 'src/components/ui/VnList.vue'; + import { currency, formatDateTitle } from 'src/lib/filters.js'; import { useVnConfirm } from 'src/composables/useVnConfirm.js'; import useNotify from 'src/composables/useNotify.js'; @@ -18,10 +20,12 @@ const appStore = useAppStore(); const { isHeaderMounted } = storeToRefs(appStore); const router = useRouter(); +const loading = ref(false); const orders = ref([]); const getOrders = async () => { try { + loading.value = true; orders.value = await jApi.query( `SELECT o.id, o.sent, o.deliveryMethodFk, o.taxableBase, a.nickname, am.description agency @@ -31,6 +35,7 @@ const getOrders = async () => { WHERE NOT o.isConfirmed ORDER BY o.sent DESC` ); + loading.value = false; } catch (error) { console.error('Error getting orders:', error); } @@ -78,45 +83,47 @@ onMounted(async () => { - - - - + + + + + + diff --git a/src/pages/Login/LoginView.vue b/src/pages/Login/LoginView.vue index 1dabc431..f4fd6e1d 100644 --- a/src/pages/Login/LoginView.vue +++ b/src/pages/Login/LoginView.vue @@ -63,9 +63,7 @@ const loginAsGuest = async () => {