diff --git a/neode-ui/src/stores/homeStatus.ts b/neode-ui/src/stores/homeStatus.ts index 4c39cd8a..e8ea5f4b 100644 --- a/neode-ui/src/stores/homeStatus.ts +++ b/neode-ui/src/stores/homeStatus.ts @@ -89,7 +89,7 @@ export const useHomeStatusStore = defineStore('homeStatus', () => { load_avg_1?: number load_avg_5?: number load_avg_15?: number - }>({ method: 'system.stats' }) + }>({ method: 'system.stats', dedup: true }) stats.cpuPercent = res.cpu_usage_percent stats.memUsed = res.mem_used_bytes stats.memTotal = res.mem_total_bytes @@ -114,6 +114,7 @@ export const useHomeStatusStore = defineStore('homeStatus', () => { const btc = await rpcClient.call<{ block_height: number; sync_progress: number }>({ method: 'bitcoin.getinfo', timeout: 5000, + dedup: true, }) stats.bitcoinSyncPercent = (btc.sync_progress ?? 0) * 100 stats.bitcoinBlockHeight = btc.block_height ?? 0 @@ -181,7 +182,7 @@ export const useHomeStatusStore = defineStore('homeStatus', () => { key_present: boolean anchor_connected?: boolean authenticated_peer_count?: number - }>({ method: 'fips.status' }) + }>({ method: 'fips.status', dedup: true }) fipsStatus.value = status fipsLoadState.value = 'ready' lastFipsRefreshAt.value = Date.now() @@ -196,6 +197,7 @@ export const useHomeStatusStore = defineStore('homeStatus', () => { const res = await rpcClient.call<{ tollgate: { installed: boolean; enabled?: boolean } }>({ method: 'openwrt.get-status', timeout: 15000, + dedup: true, }) tollgateStatus.value = { installed: res.tollgate.installed, enabled: res.tollgate.enabled ?? false } tollgateLoadState.value = 'ready' diff --git a/neode-ui/src/views/Home.vue b/neode-ui/src/views/Home.vue index d9598961..78e3627d 100644 --- a/neode-ui/src/views/Home.vue +++ b/neode-ui/src/views/Home.vue @@ -2,9 +2,12 @@
{{ line2Text }}
@@ -291,6 +294,8 @@