Solución: Redondear decimales en horarios, activar apertura automática de ETACard y asegurar visibilidad de paradas
This commit is contained in:
@ -168,7 +168,7 @@ export function useETA() {
|
|||||||
const totalMinutes = Math.round(minutos);
|
const totalMinutes = Math.round(minutos);
|
||||||
const m = ((totalMinutes % 1440) + 1440) % 1440; // normalizar 0-1439
|
const m = ((totalMinutes % 1440) + 1440) % 1440; // normalizar 0-1439
|
||||||
const h = Math.floor(m / 60);
|
const h = Math.floor(m / 60);
|
||||||
const min = m % 60;
|
const min = Math.floor(m % 60);
|
||||||
return `${String(h).padStart(2, '0')}:${String(min).padStart(2, '0')}`;
|
return `${String(h).padStart(2, '0')}:${String(min).padStart(2, '0')}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -427,6 +427,7 @@ watch(() => routeStore.selectedRouteId, (routeId) => {
|
|||||||
// Iniciamos dibujo y búsqueda de disponibilidad en paralelo
|
// Iniciamos dibujo y búsqueda de disponibilidad en paralelo
|
||||||
updateMapMarkers(false);
|
updateMapMarkers(false);
|
||||||
updateActiveUnits();
|
updateActiveUnits();
|
||||||
|
showETACard.value = true; // RESTORED: Abrir automáticamente al seleccionar ruta
|
||||||
} else {
|
} else {
|
||||||
clearMapMarkers();
|
clearMapMarkers();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user