Bei Kabelbruch (cableBreak), Erdschluss (groundFault), Isolationsfehler (measure1Alarm) oder Schleifenfehler (measure2Alarm) wird der Status rot angezeigt. Ansonsten grün.
This commit is contained in:
@@ -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"
|
||||
}`}
|
||||
|
||||
Reference in New Issue
Block a user