From 547dbd87bbadbb9fc8cf6bdb4ba23ce44d41c018 Mon Sep 17 00:00:00 2001 From: natsoni Date: Sat, 28 Feb 2026 18:03:59 +0100 Subject: [PATCH] Hide hybrid column on liquid monitoring --- .../components/server-health/server-health.component.html | 8 ++++---- .../components/server-health/server-health.component.ts | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/components/server-health/server-health.component.html b/frontend/src/app/components/server-health/server-health.component.html index 89b10ebef..4d543256a 100644 --- a/frontend/src/app/components/server-health/server-health.component.html +++ b/frontend/src/app/components/server-health/server-health.component.html @@ -19,8 +19,8 @@ RTT RTT Height - Peg - Hybrid + Peg + Hybrid Front Back Electrs @@ -36,9 +36,9 @@ {{ (host.rtt / 1000) | number : '1.1-1' }} {{ host.rtt == null ? '' : 's'}} {{ !host.checked ? '⏳' : (host.unreachable ? '🔥' : '✅') }} {{ host.rtt | number : '1.0-0' }} {{ host.rtt == null ? '' : 'ms'}} {{ !host.checked ? '⏳' : (host.unreachable ? '🔥' : '✅') }} {{ host.latestHeight }} {{ !host.checked ? '⏳' : (host.outOfSync ? '🚫' : (host.latestHeight && host.latestHeight < maxHeight ? '🟧' : '✅')) }} - {{ formatPegRatio(host.liquidAudit?.pegRatio) }} + {{ formatPegRatio(host.liquidAudit?.pegRatio) }} - + @if (type !== 'core' && type !== 'os' && host.hashes?.[type]) { {{ host.hashes[type].slice(0, 8) || '?' }} } @else if (host.hashes?.[type]) { diff --git a/frontend/src/app/components/server-health/server-health.component.ts b/frontend/src/app/components/server-health/server-health.component.ts index 7e4d173c5..d58733c21 100644 --- a/frontend/src/app/components/server-health/server-health.component.ts +++ b/frontend/src/app/components/server-health/server-health.component.ts @@ -18,7 +18,8 @@ export class ServerHealthComponent implements OnInit { interval: number; now: number = Date.now(); colors: Record> = {}; - isLiquid = false; + isLiquidMainnet = false; + showHybridHash = false; repoMap = { frontend: 'mempool', @@ -95,7 +96,8 @@ export class ServerHealthComponent implements OnInit { this.cd.markForCheck(); }, 1000); - this.isLiquid = this.stateService.network === 'liquid'; + this.isLiquidMainnet = this.stateService.network === 'liquid'; + this.showHybridHash = !this.stateService.isLiquid(); } trackByFn(index: number, host: HealthCheckHost): string {