diff --git a/gui/src/components/main.vue b/gui/src/components/main.vue index 4c998417..11775f6f 100644 --- a/gui/src/components/main.vue +++ b/gui/src/components/main.vue @@ -3,7 +3,6 @@ import { setActivePinia } from "pinia"; import pinia from "../store/index"; setActivePinia(pinia); - import main_modals from "./main_modals.vue"; import main_top_navbar from "./main_top_navbar.vue"; import main_rig_control from "./main_rig_control.vue"; @@ -155,13 +154,15 @@ function stopAllTransmissions() { - - - - - + +
diff --git a/gui/src/components/main_modals.vue b/gui/src/components/main_modals.vue index 9e4d7fa5..93af247c 100644 --- a/gui/src/components/main_modals.vue +++ b/gui/src/components/main_modals.vue @@ -21,7 +21,6 @@ import { sendTestFrame, setTxAudioLevel, setRxAudioLevel } from "../js/sock.js"; import main_startup_check from "./main_startup_check.vue"; - function tuneAudio() { sendTestFrame(); } @@ -129,11 +128,7 @@ const transmissionSpeedChartDataMessageInfo = computed(() => ({ diff --git a/gui/src/js/eventHandler.js b/gui/src/js/eventHandler.js index 58a997e9..19514014 100644 --- a/gui/src/js/eventHandler.js +++ b/gui/src/js/eventHandler.js @@ -19,15 +19,13 @@ const stateStore = useStateStore(pinia); import { useSettingsStore } from "../store/settingsStore.js"; const settings = useSettingsStore(pinia); -export function connectionFailed(endpoint, event){ - stateStore.modem_connection = "disconnected" - +export function connectionFailed(endpoint, event) { + stateStore.modem_connection = "disconnected"; } export function stateDispatcher(data) { console.log(data); - stateStore.modem_connection = "connected" - + stateStore.modem_connection = "connected"; if (data["freedata-message"] == "state-change") { stateStore.channel_busy = data["channel_busy"]; diff --git a/gui/src/js/event_sock.js b/gui/src/js/event_sock.js index 22d6e17b..a2116de6 100644 --- a/gui/src/js/event_sock.js +++ b/gui/src/js/event_sock.js @@ -1,4 +1,8 @@ -import { eventDispatcher, stateDispatcher, connectionFailed } from "../js/eventHandler.js"; +import { + eventDispatcher, + stateDispatcher, + connectionFailed, +} from "../js/eventHandler.js"; import { addDataToWaterfall } from "../js/waterfallHandler.js"; function connect(endpoint, dispatcher) { @@ -17,7 +21,7 @@ function connect(endpoint, dispatcher) { // handle errors socket.addEventListener("error", function (event) { console.error("WebSocket error:", event); - connectionFailed(endpoint, event) + connectionFailed(endpoint, event); }); // handle closing and reconnect