mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
submit new dx chat with enter
This commit is contained in:
parent
6aa58d5837
commit
8cba7b6486
1 changed files with 6 additions and 2 deletions
|
@ -36,6 +36,8 @@ import { Line, Scatter, Bar } from "vue-chartjs";
|
|||
import { ref, computed } from "vue";
|
||||
import annotationPlugin from 'chartjs-plugin-annotation';
|
||||
|
||||
const newChatCall=ref(null);
|
||||
|
||||
|
||||
|
||||
ChartJS.register(
|
||||
|
@ -133,9 +135,10 @@ const beaconHistogramData = computed(() => ({
|
|||
}));
|
||||
|
||||
function newChat(obj) {
|
||||
let callsign = document.getElementById("chatModuleNewDxCall").value;
|
||||
let callsign = this.newChatCall.value;
|
||||
callsign = callsign.toUpperCase();
|
||||
chat.callsign_list.add(callsign);
|
||||
this.newChatCall.value="";
|
||||
}
|
||||
|
||||
|
||||
|
@ -158,8 +161,9 @@ getRxBuffer()
|
|||
class="form-control w-50"
|
||||
maxlength="9"
|
||||
style="text-transform: uppercase"
|
||||
id="chatModuleNewDxCall"
|
||||
placeholder="DX CALL"
|
||||
@keypress.enter="newChat()"
|
||||
ref="newChatCall"
|
||||
/>
|
||||
<button
|
||||
class="btn btn-sm btn-success"
|
||||
|
|
Loading…
Reference in a new issue