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