fix: autorefresh logs
Signed-off-by: Omar Sánchez Pizarro <omar.sanchez@pistacero.net>
This commit is contained in:
@@ -167,9 +167,12 @@ watch(filteredLogs, async () => {
|
|||||||
function handleWSMessage(event) {
|
function handleWSMessage(event) {
|
||||||
const data = event.detail;
|
const data = event.detail;
|
||||||
if (data.type === 'logs_updated') {
|
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
|
// Al recibir actualización de WebSocket, cargar logs con seguimiento si está activado
|
||||||
loadLogs(followLatestLog.value);
|
loadLogs(followLatestLog.value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user