Fix: correcciones de accesibilidad y tipo de fecha

- Agregar title y description a UModal de gestión de impresoras
- Agregar description a UDrawer de guardar template
- Corregir tipo de parámetro formatDate para aceptar string | number
This commit is contained in:
2025-11-25 01:26:09 -06:00
parent 155995c773
commit fd7ba42288
3 changed files with 4 additions and 7 deletions

View File

@@ -89,7 +89,7 @@ async function saveAsTemplate() {
</div>
<!-- Drawer para guardar template -->
<UDrawer v-model:open="saveDrawerOpen" direction="bottom" title="Guardar como Template">
<UDrawer v-model:open="saveDrawerOpen" direction="bottom" title="Guardar como Template" description="Guardar la cola actual como template reutilizable">
<template #body>
<div class="space-y-4 p-4">
<UFormField label="Nombre del template" required>

View File

@@ -29,8 +29,8 @@ const menuItems = computed(() => [
]
])
function formatDate(timestamp: number) {
return new Date(timestamp).toLocaleDateString('es-AR', {
function formatDate(date: string | number) {
return new Date(date).toLocaleDateString('es-AR', {
day: '2-digit',
month: 'short',
year: 'numeric'