Isolationsfehler in Display anzeigen -> aktuell Zahl ist rot ohne Beschrifftung , es soll Zahl ISO MOhm und Isolationsfehler

This commit is contained in:
ISA
2025-07-23 12:28:12 +02:00
parent 36863d3c6a
commit 5cf5e34c4f
7 changed files with 39 additions and 9 deletions

View File

@@ -236,7 +236,26 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
: ""
}
>
{isoDisplayValue}
{Number(kuePSTmMinus96V?.[slotIndex]) === 1 ? (
"PST Fehler"
) : Number(kueCableBreak?.[slotIndex]) === 1 ? (
"Aderbruch"
) : Number(kueGroundFault?.[slotIndex]) === 1 ? (
"Erdschluss"
) : Number(kueAlarm1?.[slotIndex]) === 1 ? (
<div>
<span className="text-[0.65rem] block">
Isolationsfehler
</span>
<span className="text-[0.65rem] block">
{isoDisplayValue} MOhm
</span>
</div>
) : Number(kueAlarm2?.[slotIndex]) === 1 ? (
"Schleifenfehler"
) : (
isoDisplayValue
)}
</span>
{![
@@ -286,7 +305,7 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
<button
onClick={() => {
setActiveButton("TDR");
setloopTitleText("Entfernung [Km]");
setloopTitleText("Entfernung [km]");
const latestTdrDistanceMeters =
Array.isArray(tdmChartData?.[slotIndex]) &&
@@ -332,7 +351,7 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
<div className="text-center text-black text-[0.625rem]">
<p>
{loopDisplayValue +
(activeButton === "Schleife" ? " KOhm" : " Km")}
(activeButton === "Schleife" ? " kOhm" : " km")}
</p>
</div>
</div>