diff --git a/gui/src/components/chat.vue b/gui/src/components/chat.vue index d625d309..7f0f145a 100644 --- a/gui/src/components/chat.vue +++ b/gui/src/components/chat.vue @@ -33,7 +33,7 @@ import chat_new_message from "./chat_new_message.vue";
diff --git a/gui/src/components/chat_navbar.vue b/gui/src/components/chat_navbar.vue index 46a2bc72..2e06d129 100644 --- a/gui/src/components/chat_navbar.vue +++ b/gui/src/components/chat_navbar.vue @@ -13,6 +13,8 @@ const chat = useChatStore(pinia); import { getRxBuffer } from "../js/sock.js"; +import { startChatWithNewStation } from "../js/chatHandler"; + import { Chart as ChartJS, CategoryScale, @@ -88,21 +90,6 @@ var beaconHistogramOptions = { }, }; -//let dataArray = new Array(25).fill(0) -//dataArray = dataArray.add([-3, 10, 8, 5, 3, 0, -5]) -//let dataArray1 = dataArray.shift(2) -//console.log(dataArray1) -//[-3, 10, 8, 5, 3, 0, -5] - -try { - chat.beaconLabelArray = Object.values( - chat.sorted_beacon_list["DJ2LS-0"].timestamp, - ); - chat.beaconDataArray = Object.values(chat.sorted_beacon_list["DJ2LS-0"].snr); -} catch (e) { - console.log(e); -} - const beaconHistogramData = computed(() => ({ labels: chat.beaconLabelArray, datasets: [ @@ -121,8 +108,10 @@ const beaconHistogramData = computed(() => ({ function newChat() { let callsign = this.newChatCall.value; - callsign = callsign.toUpperCase(); - chat.callsign_list.add(callsign); + callsign = callsign.toUpperCase().trim(); + if (callsign === "") return; + startChatWithNewStation(callsign); + //updateAllChat(false); this.newChatCall.value = ""; } diff --git a/gui/src/components/main_active_rig_control.vue b/gui/src/components/main_active_rig_control.vue index 51bd4e02..61dbd37a 100644 --- a/gui/src/components/main_active_rig_control.vue +++ b/gui/src/components/main_active_rig_control.vue @@ -80,7 +80,7 @@ function set_hamlib_rf_level() { data-bs-toggle="dropdown" aria-expanded="false" > - Select Frequency + diff --git a/gui/src/components/main_footer_navbar.vue b/gui/src/components/main_footer_navbar.vue index 4df19e5a..b03635d4 100644 --- a/gui/src/components/main_footer_navbar.vue +++ b/gui/src/components/main_footer_navbar.vue @@ -130,7 +130,7 @@ const state = useStateStore(pinia); data-bs-title="What's the frequency, Kenneth?" style="pointer-events: auto" > - {{ parseInt(state.frequency) / 1000 }} KHz + {{ parseInt(state.frequency) / 1000 }} kHz diff --git a/gui/src/components/settings_gui.vue b/gui/src/components/settings_gui.vue index 19a15e60..7468d0b3 100644 --- a/gui/src/components/settings_gui.vue +++ b/gui/src/components/settings_gui.vue @@ -1,4 +1,5 @@