diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index 9f5ae319c..56811ffdd 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -96,16 +96,16 @@ onMounted(async () => { }); onBeforeRouteLeave((to, from, next) => { - if (!hasChanges.value) next(); - - quasar.dialog({ - component: VnConfirm, - componentProps: { - title: t('Unsaved changes will be lost'), - message: t('Are you sure exit without saving?'), - promise: () => next(), - }, - }); + if (hasChanges.value) { + quasar.dialog({ + component: VnConfirm, + componentProps: { + title: t('Unsaved changes will be lost'), + message: t('Are you sure exit without saving?'), + promise: () => next(), + }, + }); + } else next(); }); onUnmounted(() => { diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 0cc91c88d..7643ef640 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -698,6 +698,7 @@ export default { intrastat: 'Intrastat', corrective: 'Corrective', log: 'Logs', + create: 'Create', }, list: { ref: 'Reference', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 7369721e6..c22a15b69 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -756,6 +756,7 @@ export default { intrastat: 'Intrastat', corrective: 'Rectificativa', log: 'Registros de auditoría', + create: 'Crear', }, list: { ref: 'Referencia', diff --git a/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue b/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue index 8ee7e647a..746ff3c49 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue @@ -1,6 +1,6 @@ +