mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes to commit 3c9c115
This commit is contained in:
parent
3c9c115931
commit
34101b8a20
3 changed files with 3 additions and 5 deletions
|
@ -6,8 +6,7 @@ setActivePinia(pinia);
|
||||||
import { useStateStore } from "../store/stateStore.js";
|
import { useStateStore } from "../store/stateStore.js";
|
||||||
const state = useStateStore(pinia);
|
const state = useStateStore(pinia);
|
||||||
|
|
||||||
import { getOverallHealth } from "../js/eventHandler.js"
|
import { getOverallHealth } from "../js/eventHandler.js";
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<a
|
<a
|
||||||
|
|
|
@ -327,10 +327,9 @@ export function getOverallHealth() {
|
||||||
health += 5;
|
health += 5;
|
||||||
stateStore.is_modem_running = false;
|
stateStore.is_modem_running = false;
|
||||||
stateStore.radio_status = false;
|
stateStore.radio_status = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (!stateStore.is_modem_running) health += 3;
|
if (!stateStore.is_modem_running) health += 3;
|
||||||
if (stateStore.radio_status === false) health += 2;
|
if (stateStore.radio_status === false) health += 2;
|
||||||
if (process.env.FDUpdateAvail === "1") health += 1;
|
if (process.env.FDUpdateAvail === "1") health += 1;
|
||||||
return health;
|
return health;
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,4 +127,4 @@ export function getAppDataPath() {
|
||||||
}
|
}
|
||||||
|
|
||||||
return appDataPath;
|
return appDataPath;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue