[CodeFactor] Apply fixes to commit bf31ca5

This commit is contained in:
codefactor-io 2023-11-28 22:29:27 +00:00
parent bf31ca5891
commit c78d30f9ef
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
2 changed files with 6 additions and 11 deletions

View file

@ -244,8 +244,7 @@ export default {
data-bs-html="true"
v-bind:class="{
'btn-warning': state.channel_busy_slot[0] === true,
'btn-outline-secondary':
state.channel_busy_slot[0] === false,
'btn-outline-secondary': state.channel_busy_slot[0] === false,
}"
title="Channel busy state: <strong class='text-success'>not busy</strong> / <strong class='text-danger'>busy </strong>"
>
@ -261,8 +260,7 @@ export default {
data-bs-html="true"
v-bind:class="{
'btn-warning': state.channel_busy_slot[1] === true,
'btn-outline-secondary':
state.channel_busy_slot[1] === false,
'btn-outline-secondary': state.channel_busy_slot[1] === false,
}"
title="Channel busy state: <strong class='text-success'>not busy</strong> / <strong class='text-danger'>busy </strong>"
>
@ -278,8 +276,7 @@ export default {
data-bs-html="true"
v-bind:class="{
'btn-warning': state.channel_busy_slot[2] === true,
'btn-outline-secondary':
state.channel_busy_slot[2] === false,
'btn-outline-secondary': state.channel_busy_slot[2] === false,
}"
title="Channel busy state: <strong class='text-success'>not busy</strong> / <strong class='text-danger'>busy </strong>"
>
@ -295,8 +292,7 @@ export default {
data-bs-html="true"
v-bind:class="{
'btn-warning': state.channel_busy_slot[3] === true,
'btn-outline-secondary':
state.channel_busy_slot[3] === false,
'btn-outline-secondary': state.channel_busy_slot[3] === false,
}"
title="Channel busy state: <strong class='text-success'>not busy</strong> / <strong class='text-danger'>busy </strong>"
>
@ -312,8 +308,7 @@ export default {
data-bs-html="true"
v-bind:class="{
'btn-warning': state.channel_busy_slot[4] === true,
'btn-outline-secondary':
state.channel_busy_slot[4] === false,
'btn-outline-secondary': state.channel_busy_slot[4] === false,
}"
title="Channel busy state: <strong class='text-success'>not busy</strong> / <strong class='text-danger'>busy </strong>"
>

View file

@ -19,7 +19,7 @@ export const useStateStore = defineStore("stateStore", () => {
var speed_level = ref(0);
var fft = ref();
var channel_busy = ref(false);
var channel_busy_slot = ref([false,false,false,false,false]);
var channel_busy_slot = ref([false, false, false, false, false]);
var scatter = ref();
var s_meter_strength_percent = ref(0);
var s_meter_strength_raw = ref(0);