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:
@@ -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>
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -85,10 +85,7 @@ onMounted(() => {
|
||||
<LayoutMobileNavigation v-model="activeTab" />
|
||||
|
||||
<!-- Modal para gestionar impresoras (desktop) -->
|
||||
<UModal v-model:open="showPrintersDrawer">
|
||||
<template #header>
|
||||
<h3 class="text-lg font-semibold">Gestión de Impresoras</h3>
|
||||
</template>
|
||||
<UModal v-model:open="showPrintersDrawer" title="Gestión de Impresoras" description="Configurar impresoras disponibles">
|
||||
<template #body>
|
||||
<PrintersList />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user