From 7ee7395b0fe43182f444d0276073cbfe9fa6c050 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Fri, 29 Nov 2024 12:28:57 +0200 Subject: [PATCH] UI: Fixed no signal logical in signal strength widgets --- .../widget/lib/indicator/signal-strength-widget.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/indicator/signal-strength-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/indicator/signal-strength-widget.component.ts index f4531371ef..6a5545ad43 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/indicator/signal-strength-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/indicator/signal-strength-widget.component.ts @@ -168,6 +168,7 @@ export class SignalStrengthWidgetComponent implements OnInit, OnDestroy, AfterVi } this.noSignalRssiValue = this.settings.noSignalRssiValue ?? -100; + this.rssi = this.noSignalRssiValue; this.activeBarsColor = ColorProcessor.fromSettings(this.settings.activeBarsColor); const inactiveBarsColor = tinycolor(this.settings.inactiveBarsColor); @@ -259,7 +260,7 @@ export class SignalStrengthWidgetComponent implements OnInit, OnDestroy, AfterVi this.tooltipValueText = formatValue(value, this.decimals, this.units, false); } } else { - this.rssi = -100; + this.rssi = this.noSignalRssiValue; if (this.showTooltipValue) { this.tooltipValueText = 'N/A'; }