diff --git a/package.json b/package.json index 9bc1af14..9f0c7db4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "25.8.1", + "version": "25.8.2", "description": "Verdnatura web page", "license": "GPL-3.0", "productName": "Verdnatura", diff --git a/src/boot/axios.js b/src/boot/axios.js index 1235d58e..07a52ea7 100644 --- a/src/boot/axios.js +++ b/src/boot/axios.js @@ -40,9 +40,9 @@ const onResponseError = error => { Router.push({ name: 'login' }); userStore.destroy(false); - } else if (!userStore.isLoggedIn) { - return Promise.reject(error); } + + return Promise.reject(error); }; export default boot(({ app }) => { diff --git a/src/i18n/ca-ES/index.js b/src/i18n/ca-ES/index.js index 3a09fc17..456795a5 100644 --- a/src/i18n/ca-ES/index.js +++ b/src/i18n/ca-ES/index.js @@ -104,7 +104,6 @@ export default { Account: 'Compte', Addresses: 'Adreces' }, - // orderLoadedIntoBasket: 'Comanda carregada a la cistella!', loadAnOrder: 'Si us plau carrega una comanda pendent a la cistella o en comença una de nova', diff --git a/src/i18n/en-US/index.js b/src/i18n/en-US/index.js index 668ebcf9..3e21b66d 100644 --- a/src/i18n/en-US/index.js +++ b/src/i18n/en-US/index.js @@ -116,8 +116,6 @@ export default { Account: 'Account', Addresses: 'Addresses' }, - - // orderLoadedIntoBasket: 'Order loaded into basket!', loadAnOrder: 'Please load a pending order to the cart or start a new one', at: 'at', diff --git a/src/i18n/es-ES/index.js b/src/i18n/es-ES/index.js index 6cd7f59d..5034ff70 100644 --- a/src/i18n/es-ES/index.js +++ b/src/i18n/es-ES/index.js @@ -113,8 +113,6 @@ export default { Account: 'Cuenta', Addresses: 'Direcciones' }, - - // orderLoadedIntoBasket: '¡Pedido cargado en la cesta!', loadAnOrder: 'Por favor carga un pedido pendiente en la cesta o empieza uno nuevo', diff --git a/src/i18n/fr-FR/index.js b/src/i18n/fr-FR/index.js index 1550c61f..ca81c36a 100644 --- a/src/i18n/fr-FR/index.js +++ b/src/i18n/fr-FR/index.js @@ -104,8 +104,6 @@ export default { Account: 'Compte', Addresses: 'Adresses' }, - - // orderLoadedIntoBasket: 'Commande chargée dans le panier!', loadAnOrder: 'Veuillez télécharger une commande en attente dans le panier ou en démarrer une nouvelle', diff --git a/src/i18n/pt-PT/index.js b/src/i18n/pt-PT/index.js index ce5a4f5a..39bbe5de 100644 --- a/src/i18n/pt-PT/index.js +++ b/src/i18n/pt-PT/index.js @@ -104,7 +104,6 @@ export default { Account: 'Conta', Addresses: 'Moradas' }, - // orderLoadedIntoBasket: 'Pedido carregado na cesta!', loadAnOrder: 'Carregue um pedido pendente no carrinho ou inicie um novo', at: 'às', diff --git a/src/pages/Cms/Home.vue b/src/pages/Cms/Home.vue index 77d7ab25..6ad42b89 100644 --- a/src/pages/Cms/Home.vue +++ b/src/pages/Cms/Home.vue @@ -63,3 +63,16 @@ export default { } }; + + +en-US: + startOrder: Start order +es-ES: + startOrder: Empezar pedido +ca-ES: + startOrder: Començar comanda +fr-FR: + startOrder: Lancer une commande +pt-PT: + startOrder: Comece uma encomenda + diff --git a/src/pages/Cms/HomeView.vue b/src/pages/Cms/HomeView.vue index a9931ca9..442dfbc9 100644 --- a/src/pages/Cms/HomeView.vue +++ b/src/pages/Cms/HomeView.vue @@ -57,7 +57,9 @@ onMounted(async () => await fetchData()); color="accent" to="/ecomerce/catalog" > - {{ $t('startOrder') }} + {{ $t('startOrder') }} + @@ -99,7 +101,7 @@ es-ES: ca-ES: startOrder: Començar comanda fr-FR: - startOrder: Lancer commande + startOrder: Lancer une commande pt-PT: startOrder: Comece uma encomenda diff --git a/src/stores/user.js b/src/stores/user.js index 7f9d8a54..97c8d6fe 100644 --- a/src/stores/user.js +++ b/src/stores/user.js @@ -335,6 +335,7 @@ export const useUserStore = defineStore('user', () => { logoutSupplantedUser, updateUserLang, init, - $reset + $reset, + onLogin }; });