Bei Kabelbruch (cableBreak), Erdschluss (groundFault), Isolationsfehler (measure1Alarm) oder Schleifenfehler (measure2Alarm) wird der Status rot angezeigt. Ansonsten grün.

This commit is contained in:
ISA
2024-10-23 10:50:55 +02:00
parent 94e749efc1
commit 85bda4323c
17 changed files with 88 additions and 2725 deletions

View File

@@ -1,4 +1,4 @@
"use client";
"use client"; // components/modules/Kue705FO.jsx
import React, { useState, useEffect } from "react";
import ReactModal from "react-modal";
import Chart from "chart.js/auto";
@@ -288,7 +288,9 @@ function Kue705FO({
slot={slotIndex}
onModulNameChange={handleModulNameChange}
/>
{/*
Bei Kabelbruch (cableBreak), Erdschluss (groundFault), Isolationsfehler (measure1Alarm) oder Schleifenfehler (measure2Alarm)
*/}
<div className="flex flex-col mt-[10px] ml-[10px]">
<div className="flex items-center">
<div className="w-[10px] h-[10px] bg-green-500 rounded-full mr-2"></div>
@@ -297,7 +299,10 @@ function Kue705FO({
<div className="flex items-center mt-1">
<div
className={`w-[10px] h-[10px] rounded-full mr-2 ${
window.kueAlarm1 && slotIndex === 1
(window.kueAlarm1 && slotIndex === 1) ||
(window.kueAlarm2 && slotIndex === 1) ||
(window.kueCableBreak && slotIndex === 1) ||
(window.kueGroundFault && slotIndex === 1)
? "bg-red-500"
: "bg-gray-300"
}`}