From 2a4721b8deba80f9a41339a0c3ffc214508eada4 Mon Sep 17 00:00:00 2001 From: ditatompel Date: Tue, 7 May 2024 21:31:40 +0700 Subject: [PATCH] Add filter log by failed reason and status --- .../(front)/remote-nodes/logs/+page.svelte | 25 ++++--------------- handler/response.go | 2 ++ internal/repo/monero.go | 16 +++++++++--- 3 files changed, 19 insertions(+), 24 deletions(-) diff --git a/frontend/src/routes/(front)/remote-nodes/logs/+page.svelte b/frontend/src/routes/(front)/remote-nodes/logs/+page.svelte index e50d158..256ed2e 100644 --- a/frontend/src/routes/(front)/remote-nodes/logs/+page.svelte +++ b/frontend/src/routes/(front)/remote-nodes/logs/+page.svelte @@ -20,7 +20,6 @@ export let data; let pageId = '0'; - let filterProberId = 0; let filterStatus = -1; /** @type {MoneroNode | null} */ @@ -67,10 +66,10 @@ } }; - $: startInterval(); // Automatically start the interval on change + $: startInterval(); onDestroy(() => { - clearInterval(intervalId); // Clear the interval when the component is destroyed + clearInterval(intervalId); }); onMount(() => { pageId = new URLSearchParams(window.location.search).get('node_id') || '0'; @@ -161,7 +160,7 @@ #ID - + Prober ID Height Adjusted Time @@ -172,21 +171,7 @@ Runtime - - - - +