From 7a78d750f4259f1c5f1e6ac5744a779520b5123d Mon Sep 17 00:00:00 2001 From: Dorian Date: Tue, 7 Apr 2026 15:23:17 +0100 Subject: [PATCH] fix: TS type error in VPN status, remove unused assignment warning - Fix vpnStatus type mismatch (provider: string|undefined vs string|null) - Remove redundant history_dirty assignment in health_monitor.rs Co-Authored-By: Claude Opus 4.6 (1M context) --- core/archipelago/src/health_monitor.rs | 1 - neode-ui/src/views/Home.vue | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/archipelago/src/health_monitor.rs b/core/archipelago/src/health_monitor.rs index ef2be988..e8bd4a2a 100644 --- a/core/archipelago/src/health_monitor.rs +++ b/core/archipelago/src/health_monitor.rs @@ -539,7 +539,6 @@ pub fn spawn_health_monitor(state: Arc, data_dir: PathBuf) { other.name, container.name); tracker.clear(&other.name); restart_history.clear(&other.name); - history_dirty = true; } } } diff --git a/neode-ui/src/views/Home.vue b/neode-ui/src/views/Home.vue index 27da971b..47825bcf 100644 --- a/neode-ui/src/views/Home.vue +++ b/neode-ui/src/views/Home.vue @@ -311,7 +311,7 @@ const torConnected = computed(() => { const torAddr = store.data?.['server-info']?.['tor-address'] return !!torAddr && torAddr.length > 0 }) -const vpnStatus = ref<{ connected: boolean; provider: string | null }>({ connected: false, provider: null }) +const vpnStatus = ref({ connected: false, provider: '' }) const vpnConnected = computed(() => vpnStatus.value.connected || (!!packages.value['tailscale'] && packages.value['tailscale'].state === PackageState.Running)) const bitcoinSyncDisplay = computed(() => { if (!systemStats.bitcoinAvailable) return 'Not running' @@ -348,7 +348,7 @@ const cloudFolderDisplay = computed(() => cloudFolderCount.value !== null ? Stri onMounted(async () => { try { const usage = await fileBrowserClient.getUsage(); cloudStorageUsed.value = usage.totalSize; cloudFolderCount.value = usage.folderCount } catch { /* not running */ } loadSystemStats(); systemStatsInterval = setInterval(loadSystemStats, 30000); checkUpdateStatus(); loadWeb5Status() - rpcClient.vpnStatus().then(s => { vpnStatus.value = s }).catch(() => {}) + rpcClient.vpnStatus().then(s => { vpnStatus.value = { connected: s.connected, provider: s.provider ?? '' } }).catch(() => {}) }) // Wallet modals