Prettified Code!

This commit is contained in:
DJ2LS 2023-04-20 09:55:17 +00:00 committed by GitHub Action
parent 1a97b6b763
commit 2ca585e7e6
2 changed files with 12 additions and 12 deletions

View file

@ -1944,10 +1944,12 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
// PTT STATE
switch (arg.ptt_state) {
case "True":
document.getElementById("ptt_state").className = "btn btn-sm btn-danger me-1";
document.getElementById("ptt_state").className =
"btn btn-sm btn-danger me-1";
break;
case "False":
document.getElementById("ptt_state").className = "btn btn-sm btn-success me-1";
document.getElementById("ptt_state").className =
"btn btn-sm btn-success me-1";
break;
default:
document.getElementById("ptt_state").className =
@ -1957,11 +1959,9 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
// AUDIO RECORDING
if (arg.audio_recording == "True") {
document.getElementById("startStopRecording").textContent =
"Stop Rec";
document.getElementById("startStopRecording").textContent = "Stop Rec";
} else {
document.getElementById("startStopRecording").textContent =
"Record";
document.getElementById("startStopRecording").textContent = "Record";
}
//CHANNEL CODEC2 BUSY STATE
if (arg.is_codec2_traffic == "True") {
@ -1989,7 +1989,8 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
// BUSY STATE
switch (arg.busy_state) {
case "BUSY":
document.getElementById("busy_state").className = "btn btn-sm btn-danger me-1";
document.getElementById("busy_state").className =
"btn btn-sm btn-danger me-1";
//Seems to be no longer user accessible
//document.getElementById("startTransmission").disabled = true;
break;
@ -2008,7 +2009,8 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
// ARQ STATE
switch (arg.arq_state) {
case "True":
document.getElementById("arq_state").className = "btn btn-sm btn-warning me-1";
document.getElementById("arq_state").className =
"btn btn-sm btn-warning me-1";
//Seems to be no longer user accessible
//document.getElementById("startTransmission").disabled = false;
break;

View file

@ -283,7 +283,7 @@
-->
</nav>
<div id="blurdiv" style="-webkit-filter: blur(0px); filter: blur(0px);">
<div id="blurdiv" style="-webkit-filter: blur(0px); filter: blur(0px)">
<!--beginn of blur div -->
<!-------------------------------- MAIN AREA ---------------->
<!-------------------------------- INFO TOASTS ---------------->
@ -974,8 +974,7 @@
class="btn btn-sm btn-outline-secondary ms-1"
id="sendCQ"
type="button"
title="Send a CQ to the world"
title="Send a CQ to the world"
>
Call CQ
</button>
@ -985,7 +984,6 @@
id="startBeacon"
class="btn btn-sm btn-outline-secondary ms-1"
title="Toggle beacon mode. The interval can be set in settings. While sending a beacon, you can receive ping requests and open a datachannel. If a datachannel is opened, the beacon pauses."
>
<i class="bi bi-soundwave"></i> Toggle beacon
</button>