diff --git a/gui/src/components/main_startup_check.vue b/gui/src/components/main_startup_check.vue index 5ae7d06f..e097ccf0 100644 --- a/gui/src/components/main_startup_check.vue +++ b/gui/src/components/main_startup_check.vue @@ -6,15 +6,43 @@ import main_rig_control from "./main_rig_control.vue"; import main_audio from "./main_audio.vue"; import infoScreen_updater from "./infoScreen_updater.vue"; +import { saveModemConfig } from "../js/api"; + +import { setActivePinia } from "pinia"; +import pinia from "../store/index"; +setActivePinia(pinia); + +import { useSettingsStore } from "../store/settingsStore.js"; +const settings = useSettingsStore(pinia); + +import { useAudioStore } from "../store/audioStore.js"; +const audio = useAudioStore(pinia); + +import { useStateStore } from "../store/stateStore.js"; +const state = useStateStore(pinia); + +import { startModem, stopModem } from "../js/api"; +import { getModemConfig } from "../js/api"; + // start modemCheck modal once on startup onMounted(() => { + getModemConfig(); new Modal("#modemCheck", {}).show(); + if (state.is_modem_running == false) { + } }); + +function getModemState() { + // Returns active/inactive if modem is running for modem status label + console.log(state.is_modem_running); + if (state.is_modem_running == true) return "Active"; + else return "Inactive"; +}