mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
feat(ui): render the local RTL-SDR card from the store
LocalSdrControls publishes the card to the radio store and SdrCard renders it. The new v-field-value directive never overwrites a focused field, including one a render disables.
This commit is contained in:
1 parent
ccb7edd0d1
commit
b6c7c130f6
11 files changed
+402
-158
No files matched your search
@@ -164,9 +164,10 @@ export function renderRadioState(state) {
|
||||
this._cockpitRadioPlayBtn.title = playbackAction;
|
||||
}
|
||||
// A slider the person is dragging keeps the value they are setting.
|
||||
if (document.activeElement !== this._radioVolume)
|
||||
this._radioVolumeShown = Math.round(state.volume * 100);
|
||||
else this._radioVolumeShown ??= Number(this._radioVolume?.value ?? 80);
|
||||
this._radioVolumeShown =
|
||||
this._radioVolume && document.activeElement === this._radioVolume
|
||||
? Number(this._radioVolume.value)
|
||||
: Math.round(state.volume * 100);
|
||||
if (
|
||||
this._cockpitRadioVolume &&
|
||||
document.activeElement !== this._cockpitRadioVolume
|
||||
|
||||
Reference in new issue
Block a user