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
1528db518a
commit
cb2a346c26
3 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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":
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue