feat: Icon für Aderbruch-Anzeige hinzugefügt und vergrößert
- Wechselnde Anzeige zwischen "Aderbruch" und Warnsymbol bei Kabelbruch implementiert - Warnsymbol in der "Aderbruch"-Anzeige vergrößert (fontSize: 24px) für bessere Sichtbarkeit - Code optimiert, um die Anzeige alle 2 Sekunden zu wechseln
This commit is contained in:
@@ -321,7 +321,14 @@ function Kue705FO({
|
||||
if (window.kueCableBreak[slotIndex] === 1) {
|
||||
const intervalId = setInterval(() => {
|
||||
setIsoDisplayText((prevText) =>
|
||||
prevText === "Aderbruch" ? ">200 MOhm" : "Aderbruch"
|
||||
prevText === "Aderbruch" ? (
|
||||
<i
|
||||
className="bi bi-exclamation-triangle"
|
||||
style={{ fontSize: "24px" }}
|
||||
></i>
|
||||
) : (
|
||||
"Aderbruch"
|
||||
)
|
||||
);
|
||||
}, 2000);
|
||||
|
||||
@@ -330,6 +337,7 @@ function Kue705FO({
|
||||
setIsoDisplayText(isolationswert || ">200");
|
||||
}
|
||||
}, [slotIndex, isolationswert]);
|
||||
|
||||
//-------------------------------------------------
|
||||
|
||||
return (
|
||||
@@ -387,7 +395,7 @@ function Kue705FO({
|
||||
>
|
||||
{/* Aderbruch anzeigen, wenn Aderbruch vorhanden ist isoDisplayText*/}
|
||||
{window.kueCableBreak[slotIndex] === 1
|
||||
? "Aderbruch"
|
||||
? isoDisplayText
|
||||
: isolationswert || ">200"}
|
||||
</span>
|
||||
{window.kueCableBreak[slotIndex] !== 1 && (
|
||||
|
||||
Reference in New Issue
Block a user