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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
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'; |
|
|
|
} |
|
|
|
|