applikationsversion von Platzhalter anzeigen und in der Einstellung "Systemzeit übernehmen" vorbereitet, muss nur Platzhalter von Kai gesetzt werden

This commit is contained in:
ISA
2024-10-18 14:38:09 +02:00
parent b25951c7ba
commit d76b6b0c6b
5 changed files with 107 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ function Dashboard() {
const [loading, setLoading] = useState(true);
const [error, setError] = useState(null);
const [kueCableBreak, setKueCableBreak] = useState([]);
const [appVersion, setAppVersion] = useState("");
useEffect(() => {
loadWindowVariables(apiUrl)
@@ -32,6 +33,7 @@ function Dashboard() {
setIp(window.ip);
setSubnet(window.subnet);
setGateway(window.gateway);
setAppVersion(window.appVersion);
} else {
console.error("Konnte last20Messages nicht finden.");
setError("Konnte last20Messages nicht finden.");
@@ -239,8 +241,9 @@ function Dashboard() {
<div className="flex flex-row p-2 space-x-2">
<Icon icon="bx:code-block" className="text-xl text-blue-400" />
<p className="text-sm text-gray-600">
<span className="font-bold">Applikationsversion: </span> 5.1.1.8
C-24-KA
<span className="font-bold">
Applikationsversion: {appVersion}{" "}
</span>
</p>
</div>
<div className="flex flex-row p-2 space-x-2">