From c7d94b3b63ff1a786e2aa298569465e2b8889bc6 Mon Sep 17 00:00:00 2001 From: Pedro Date: Sat, 18 Nov 2023 16:31:48 +0100 Subject: [PATCH] Handle audio and serial devices for dynamic options --- gui/src/components/main_startup_check.vue | 5 -- gui/src/components/main_top_navbar.vue | 3 -- gui/src/components/settings_hamlib.vue | 9 +++- gui/src/components/settings_modem.vue | 19 +++++--- gui/src/js/deviceFormHelper.ts | 28 +++++++++++ gui/src/store/audioStore.js | 59 ----------------------- 6 files changed, 47 insertions(+), 76 deletions(-) create mode 100644 gui/src/js/deviceFormHelper.ts delete mode 100644 gui/src/store/audioStore.js diff --git a/gui/src/components/main_startup_check.vue b/gui/src/components/main_startup_check.vue index 8df23cf5..c0435ad5 100644 --- a/gui/src/components/main_startup_check.vue +++ b/gui/src/components/main_startup_check.vue @@ -10,9 +10,6 @@ setActivePinia(pinia); import { settingsStore as settings, onChange } from "../store/settingsStore.js"; -import { useAudioStore } from "../store/audioStore.js"; -const audio = useAudioStore(pinia); - import { useStateStore } from "../store/stateStore.js"; const state = useStateStore(pinia); @@ -209,7 +206,6 @@ function testHamlib() { aria-label=".form-select-sm" @change="onChange" v-model="settings.remote.AUDIO.input_device" - v-html="audio.getInputDevices()" > @@ -222,7 +218,6 @@ function testHamlib() { aria-label=".form-select-sm" @change="setConfig" v-model="settings.output_device" - v-html="audio.getOutputDevices()" > diff --git a/gui/src/components/main_top_navbar.vue b/gui/src/components/main_top_navbar.vue index 8359f5c1..638b2b89 100644 --- a/gui/src/components/main_top_navbar.vue +++ b/gui/src/components/main_top_navbar.vue @@ -8,9 +8,6 @@ const state = useStateStore(pinia); import { settingsStore as settings} from "../store/settingsStore.js"; -import { useAudioStore } from "../store/audioStore.js"; -const audioStore = useAudioStore(pinia); -