Browse Source

Merge pull request #12146 from vvlladd28/bug/signal-strength/no-signal

Fixed "no signal" logical in signal strength widgets
pull/12157/head
Igor Kulikov 2 years ago
committed by GitHub
parent
commit
2e5ff2b1b8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      ui-ngx/src/app/modules/home/components/widget/lib/indicator/signal-strength-widget.component.ts

3
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.noSignalRssiValue = this.settings.noSignalRssiValue ?? -100;
this.rssi = this.noSignalRssiValue;
this.activeBarsColor = ColorProcessor.fromSettings(this.settings.activeBarsColor); this.activeBarsColor = ColorProcessor.fromSettings(this.settings.activeBarsColor);
const inactiveBarsColor = tinycolor(this.settings.inactiveBarsColor); 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); this.tooltipValueText = formatValue(value, this.decimals, this.units, false);
} }
} else { } else {
this.rssi = -100; this.rssi = this.noSignalRssiValue;
if (this.showTooltipValue) { if (this.showTooltipValue) {
this.tooltipValueText = 'N/A'; this.tooltipValueText = 'N/A';
} }

Loading…
Cancel
Save