Rename system to SIB: update translations, logos, views, stores and logs
This commit is contained in:
@ -174,7 +174,7 @@ async function handleRefocus() {
|
||||
updateActiveUnits();
|
||||
} else {
|
||||
// El mapa fue destruido por el browser al suspender la pestaña — reinicializar
|
||||
console.log('SIBU | Mapa perdido tras refocus, reinicializando...');
|
||||
console.log('SIB | Mapa perdido tras refocus, reinicializando...');
|
||||
if (isLoaded.value) {
|
||||
await initializeMap();
|
||||
} else {
|
||||
@ -450,7 +450,7 @@ function locateUser(): Promise<void> {
|
||||
resolve();
|
||||
},
|
||||
(error) => {
|
||||
console.error('SIBU | Error obteniendo ubicación:', error);
|
||||
console.error('SIB | Error obteniendo ubicación:', error);
|
||||
// Si falló por falta de permisos o error y el usuario tenía auto_location activo,
|
||||
// lo desactivamos para no re-intentar infinitamente
|
||||
if (authStore.userProfile?.auto_location) {
|
||||
@ -504,7 +504,7 @@ watch([etaCargando, () => busesActivos.value.length], ([loading, count]) => {
|
||||
if (showETACard.value && busesActivos.value.length === 0 && routeStore.selectedRouteId) {
|
||||
routeStore.clearSelection();
|
||||
router.replace({ query: {} });
|
||||
console.log("SIBU | Ruta autolimpiada por falta de buses");
|
||||
console.log("SIB | Ruta autolimpiada por falta de buses");
|
||||
}
|
||||
}, 300);
|
||||
}
|
||||
@ -566,7 +566,7 @@ watch([() => authStore.userProfile?.auto_location, isLoaded], ([canLocate, loade
|
||||
// Extra guard: no re-disparar si auto_location no cambió (solo isLoaded cambió)
|
||||
// Esto previene relocalización innecesaria al volver del background
|
||||
if (prevCanLocate !== undefined || !userCoords.value) {
|
||||
console.log('SIBU | Iniciando geolocalización automática...');
|
||||
console.log('SIB | Iniciando geolocalización automática...');
|
||||
locateUser();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user