[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io 2024-05-11 08:47:49 +00:00
parent 1528db518a
commit cb2a346c26
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
3 changed files with 6 additions and 8 deletions

View file

@ -139,9 +139,8 @@ const state = useStateStore(pinia);
data-bs-html="true"
data-bs-title="the dxcallsign of the connected station"
>
<span v-if="state.arq_is_receiving">from</span>
<span v-else>to</span>
<span v-if="state.arq_is_receiving">from</span>
<span v-else>to</span>
</button>
<button

View file

@ -170,9 +170,8 @@ export function eventDispatcher(data) {
case "arq":
if (data["arq-transfer-outbound"]) {
stateStore.arq_is_receiving = false;
console.log(data)
console.log(data);
switch (data["arq-transfer-outbound"].state) {
case "NEW":
@ -209,7 +208,7 @@ export function eventDispatcher(data) {
data["arq-transfer-outbound"].statistics.snr_histogram,
);
//console.log(toRaw(stateStore.arq_speed_list_timestamp.value));
stateStore.speed_level = data["arq-transfer-outbound"].speed_level;
stateStore.speed_level = data["arq-transfer-outbound"].speed_level;
return;
case "ABORTING":
@ -302,7 +301,7 @@ export function eventDispatcher(data) {
stateStore.arq_speed_list_snr.value = toRaw(
data["arq-transfer-inbound"].statistics.snr_histogram,
);
stateStore.speed_level = data["arq-transfer-inbound"].speed_level;
stateStore.speed_level = data["arq-transfer-inbound"].speed_level;
return;
case "ENDED":

View file

@ -58,7 +58,7 @@ export const useStateStore = defineStore("stateStore", () => {
var arq_speed_list_bpm = ref([]);
var arq_speed_list_snr = ref([]);
var arq_is_receiving = ref(false)
var arq_is_receiving = ref(false);
/* TODO Those 3 can be removed I guess , DJ2LS*/
var arq_seconds_until_finish = ref();