From 34df9cf2543fe0eb2783966897bd2dfd77416020 Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 13 Nov 2024 15:33:41 +0100 Subject: [PATCH] fix: rollback --- src/boot/quasar.js | 13 +++++++------ src/components/NavBar.vue | 7 ++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/boot/quasar.js b/src/boot/quasar.js index 5e10bacf1..103b4812e 100644 --- a/src/boot/quasar.js +++ b/src/boot/quasar.js @@ -52,9 +52,9 @@ export default boot(({ app }) => { if (env && env !== 'development') return; message = 'Duplicate request'; } - // Convey to Alex or Juan... + const additionalData = { - frontPath: stateQuery.route.name, + frontPath: '', backError: { config: error.config, data: error, @@ -70,14 +70,15 @@ export default boot(({ app }) => { flat: false, round: true, handler: async () => { + const locale = i18n.global.t; const reason = ref( response.data.error.code == 'ACCESS_DENIED' - ? i18n.global.t('cau.askPrivileges') + ? locale('cau.askPrivileges') : '' ); openConfirmationModal( - i18n.global.t('cau.title'), - i18n.global.t('cau.subtitle'), + locale('cau.title'), + locale('cau.subtitle'), async () => { await axios.post('OsTickets/send-to-support', { reason: reason.value, @@ -90,7 +91,7 @@ export default boot(({ app }) => { props: { modelValue: reason, 'onUpdate:modelValue': (val) => (reason.value = val), - label: i18n.global.t('cau.inputLabel'), + label: locale('cau.inputLabel'), class: 'full-width', required: true, }, diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 6f8377d96..9b0393489 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -1,7 +1,6 @@