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:
Sameh Khamis committed 2026-10-31 00:43:27 -07:00
1 parent ccb7edd0d1
commit b6c7c130f6
11 files changed
+402 -158

No files matched your search

+4 -3
View File
@@ -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