diff --git a/CHANGELOG.md b/CHANGELOG.md index 046071abd..07674af54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2416.01] - 2024-04-18 + +### Added + ## [2414.01] - 2024-04-04 ### Added - (Tickets) => Se añade la opción de clonar ticket. #6951 +- (Parking) => Se añade la sección Parking. #5186 - (Rutas) => Se añade el campo "servida" a la tabla y se añade también a los filtros. #7130 @@ -17,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- (General) => Se corrige la redirección cuando hay 1 solo registro y cuando se aplica un filtro diferente al id al hacer una búsqueda general. #6893 + ## [2400.01] - 2024-01-04 ### Added diff --git a/package.json b/package.json index a35020b66..82f21efe6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salix-front", - "version": "24.14.0", + "version": "24.16.0", "description": "Salix frontend", "productName": "Salix", "author": "Verdnatura", diff --git a/src/components/LeftMenuItem.vue b/src/components/LeftMenuItem.vue index 976136394..cf12157e1 100644 --- a/src/components/LeftMenuItem.vue +++ b/src/components/LeftMenuItem.vue @@ -2,7 +2,7 @@ import { computed } from 'vue'; import { useI18n } from 'vue-i18n'; -const { t } = useI18n(); +const { t, te } = useI18n(); const props = defineProps({ item: { @@ -11,19 +11,30 @@ const props = defineProps({ }, }); -const item = computed(() => props.item); // eslint-disable-line vue/no-dupe-keys +const itemComputed = computed(() => { + const item = JSON.parse(JSON.stringify(props.item)); + const [, , section] = item.title.split('.'); + + if (!te(item.title)) item.title = t(`globals.pageTitles.${section}`); + return item; +}); diff --git a/src/components/common/VnBreadcrumbs.vue b/src/components/common/VnBreadcrumbs.vue index 09bc198f7..337507233 100644 --- a/src/components/common/VnBreadcrumbs.vue +++ b/src/components/common/VnBreadcrumbs.vue @@ -5,16 +5,16 @@ import { useQuasar } from 'quasar'; import { useI18n } from 'vue-i18n'; import { useCamelCase } from 'src/composables/useCamelCase'; -const router = useRouter(); -const quasar = useQuasar(); -const { t } = useI18n(); +const { currentRoute } = useRouter(); +const { screen } = useQuasar(); +const { t, te } = useI18n(); let matched = ref([]); let breadcrumbs = ref([]); let root = ref(null); watchEffect(() => { - matched.value = router.currentRoute.value.matched.filter( + matched.value = currentRoute.value.matched.filter( (matched) => Object.keys(matched.meta).length ); breadcrumbs.value.length = 0; @@ -34,13 +34,17 @@ function getBreadcrumb(param) { icon: param.meta.icon, path: param.path, root: root.value, + locale: t(`globals.pageTitles.${param.meta.title}`), }; - if (quasar.screen.gt.sm) { + if (screen.gt.sm) { breadcrumb.name = param.name; breadcrumb.title = useCamelCase(param.meta.title); } + const moduleLocale = `${breadcrumb.root}.pageTitles.${breadcrumb.title}`; + if (te(moduleLocale)) breadcrumb.locale = t(moduleLocale); + return breadcrumb; } @@ -50,7 +54,7 @@ function getBreadcrumb(param) { v-for="(breadcrumb, index) of breadcrumbs" :key="index" :icon="breadcrumb.icon" - :label="t(`${breadcrumb.root}.pageTitles.${breadcrumb.title}`)" + :label="breadcrumb.locale" :to="breadcrumb.path" /> diff --git a/src/components/common/VnDms.vue b/src/components/common/VnDms.vue index 08255f8a5..bf3f4d384 100644 --- a/src/components/common/VnDms.vue +++ b/src/components/common/VnDms.vue @@ -198,9 +198,11 @@ function addDefaultData(data) { en: contentTypesInfo: Allowed file types {allowedContentTypes} EntryDmsDescription: Reference {reference} + SupplierDmsDescription: Reference {reference} es: Generate identifier for original file: Generar identificador para archivo original contentTypesInfo: Tipos de archivo permitidos {allowedContentTypes} EntryDmsDescription: Referencia {reference} + SupplierDmsDescription: Referencia {reference} diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue index 5c70b900d..794e4cc8f 100644 --- a/src/components/common/VnLog.vue +++ b/src/components/common/VnLog.vue @@ -403,7 +403,7 @@ setLogTree(); auto-load />
diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 85e0a7857..97aa91728 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -1,5 +1,5 @@