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>
|
</div>
|
||||||
|
|
||||||
<!-- Drawer para guardar template -->
|
<!-- 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>
|
<template #body>
|
||||||
<div class="space-y-4 p-4">
|
<div class="space-y-4 p-4">
|
||||||
<UFormField label="Nombre del template" required>
|
<UFormField label="Nombre del template" required>
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ const menuItems = computed(() => [
|
|||||||
]
|
]
|
||||||
])
|
])
|
||||||
|
|
||||||
function formatDate(timestamp: number) {
|
function formatDate(date: string | number) {
|
||||||
return new Date(timestamp).toLocaleDateString('es-AR', {
|
return new Date(date).toLocaleDateString('es-AR', {
|
||||||
day: '2-digit',
|
day: '2-digit',
|
||||||
month: 'short',
|
month: 'short',
|
||||||
year: 'numeric'
|
year: 'numeric'
|
||||||
|
|||||||
@@ -85,10 +85,7 @@ onMounted(() => {
|
|||||||
<LayoutMobileNavigation v-model="activeTab" />
|
<LayoutMobileNavigation v-model="activeTab" />
|
||||||
|
|
||||||
<!-- Modal para gestionar impresoras (desktop) -->
|
<!-- Modal para gestionar impresoras (desktop) -->
|
||||||
<UModal v-model:open="showPrintersDrawer">
|
<UModal v-model:open="showPrintersDrawer" title="Gestión de Impresoras" description="Configurar impresoras disponibles">
|
||||||
<template #header>
|
|
||||||
<h3 class="text-lg font-semibold">Gestión de Impresoras</h3>
|
|
||||||
</template>
|
|
||||||
<template #body>
|
<template #body>
|
||||||
<PrintersList />
|
<PrintersList />
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user