diff --git a/nuxt4/app/app.vue b/nuxt4/app/app.vue index 7922ee7..8706d2a 100644 --- a/nuxt4/app/app.vue +++ b/nuxt4/app/app.vue @@ -269,7 +269,7 @@ import type { Lote, Operacion } from '~/composables/useLotes' const { isAuthenticated } = useAuthentik() -const { fetchLotes: fetchLotesComposable } = useLotes() +const { fetchLotes: fetchLotesComposable, TIPOS_LOTE, TIPOS_OPERACION } = useLotes() // Navegación const selectedTab = ref('lotes') @@ -351,6 +351,11 @@ const closeOperacionDetailModal = () => { selectedOperacion.value = null } +const getTipoLabel = (tipo: string) => { + const found = TIPOS_LOTE.find((t) => t.value === tipo) + return found?.label || tipo +} + const getOperacionTipoLabel = (tipo: string) => { const found = TIPOS_OPERACION.find((t) => t.value === tipo) return found?.label || tipo