fix: autorefresh logs
Signed-off-by: Omar Sánchez Pizarro <omar.sanchez@pistacero.net>
This commit is contained in:
@@ -167,10 +167,13 @@ watch(filteredLogs, async () => {
|
||||
function handleWSMessage(event) {
|
||||
const data = event.detail;
|
||||
if (data.type === 'logs_updated') {
|
||||
// Solo actualizar si auto-refresh está activado
|
||||
if (autoRefresh.value) {
|
||||
// Al recibir actualización de WebSocket, cargar logs con seguimiento si está activado
|
||||
loadLogs(followLatestLog.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadLogs(true); // Primera carga siempre hace scroll
|
||||
|
||||
Reference in New Issue
Block a user