mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
7092a5d447
commit
dba125fc87
1 changed files with 71 additions and 71 deletions
|
@ -28,18 +28,15 @@ import { getModemConfig } from "../js/api";
|
|||
onMounted(() => {
|
||||
getModemConfig();
|
||||
new Modal("#modemCheck", {}).show();
|
||||
if (state.is_modem_running == false){
|
||||
|
||||
if (state.is_modem_running == false) {
|
||||
}
|
||||
});
|
||||
|
||||
function getModemState(){
|
||||
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";
|
||||
console.log(state.is_modem_running);
|
||||
if (state.is_modem_running == true) return "Active";
|
||||
else return "Inactive";
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -119,19 +116,23 @@ function getModemState(){
|
|||
data-bs-target="#modemStatusCollapse"
|
||||
data-bs-toggle="collapse"
|
||||
>
|
||||
Modem <span class="badge ms-2"
|
||||
:class="state.is_modem_running === true ? 'bg-success' : 'bg-danger'"
|
||||
>{{ getModemState() }}</span>
|
||||
Modem
|
||||
<span
|
||||
class="badge ms-2"
|
||||
:class="
|
||||
state.is_modem_running === true
|
||||
? 'bg-success'
|
||||
: 'bg-danger'
|
||||
"
|
||||
>{{ getModemState() }}</span
|
||||
>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="modemStatusCollapse" class="accordion-collapse collapse">
|
||||
<div class="accordion-body">
|
||||
|
||||
<div class="input-group input-group-sm mb-1">
|
||||
|
||||
<label class="input-group-text w-25">Modem control</label>
|
||||
<label class="input-group-text">
|
||||
|
||||
<button
|
||||
type="button"
|
||||
id="startModem"
|
||||
|
@ -141,13 +142,13 @@ function getModemState(){
|
|||
data-bs-html="false"
|
||||
title="Start the Modem. Please set your audio and radio settings first!"
|
||||
@click="startModem"
|
||||
v-bind:class="{ disabled: state.is_modem_running === true }"
|
||||
|
||||
v-bind:class="{
|
||||
disabled: state.is_modem_running === true,
|
||||
}"
|
||||
>
|
||||
<i class="bi bi-play-fill"></i>
|
||||
|
||||
</button>
|
||||
</label><label class="input-group-text">
|
||||
</button> </label
|
||||
><label class="input-group-text">
|
||||
<button
|
||||
type="button"
|
||||
id="stopModem"
|
||||
|
@ -157,11 +158,11 @@ function getModemState(){
|
|||
data-bs-html="false"
|
||||
title="Stop the Modem."
|
||||
@click="stopModem"
|
||||
v-bind:class="{ disabled: state.is_modem_running === false }"
|
||||
|
||||
v-bind:class="{
|
||||
disabled: state.is_modem_running === false,
|
||||
}"
|
||||
>
|
||||
<i class="bi bi-stop-fill"></i>
|
||||
|
||||
</button>
|
||||
</label>
|
||||
</div>
|
||||
|
@ -190,7 +191,6 @@ function getModemState(){
|
|||
v-html="audio.getOutputDevices()"
|
||||
></select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue