diff --git a/FRONTEND/src/App.tsx b/FRONTEND/src/App.tsx index 3f08729..5bae57d 100644 --- a/FRONTEND/src/App.tsx +++ b/FRONTEND/src/App.tsx @@ -501,7 +501,7 @@ function App() { style={{ margin: 0, width: "100%", - overflowX: "hidden", + // overflowX: "hidden", }} > {station.lines.map((line, i) => ( diff --git a/FRONTEND/src/components/CardLine.tsx b/FRONTEND/src/components/CardLine.tsx index c2de65d..1c211ae 100644 --- a/FRONTEND/src/components/CardLine.tsx +++ b/FRONTEND/src/components/CardLine.tsx @@ -212,7 +212,7 @@ const CardLine = ({ - +
PID:{" "} +
+ {line?.userOpenCLI + ? (line?.userOpenCLI === user?.userName + ? "You are" + : line?.userOpenCLI + " is") + " using" + : ""} +
+ +
SN:{" "}
- + {/* {line?.tickets && line?.tickets?.length > 0 ? ( diff --git a/FRONTEND/src/components/Component.module.css b/FRONTEND/src/components/Component.module.css index 21b4142..9c0d388 100644 --- a/FRONTEND/src/components/Component.module.css +++ b/FRONTEND/src/components/Component.module.css @@ -10,7 +10,7 @@ .info_line { color: dimgrey; - font-size: 11px; + font-size: 12px; display: flex; align-items: center; gap: 4px; diff --git a/FRONTEND/src/components/DrawerControl.tsx b/FRONTEND/src/components/DrawerControl.tsx index 5392d98..e7921dd 100644 --- a/FRONTEND/src/components/DrawerControl.tsx +++ b/FRONTEND/src/components/DrawerControl.tsx @@ -884,8 +884,14 @@ export const DrawerSwitchControl: React.FC = ({ }} > - {dataStation?.switch ? ( - RenderAPCStatus(dataStation?.switch) + {dataStation?.switch_control_ip ? ( + dataStation?.switch ? ( + RenderAPCStatus(dataStation?.switch) + ) : ( + + DISCONNECTED + + ) ) : ( Switch not available diff --git a/FRONTEND/src/components/ModalTerminal.tsx b/FRONTEND/src/components/ModalTerminal.tsx index 4109e60..9c0177b 100644 --- a/FRONTEND/src/components/ModalTerminal.tsx +++ b/FRONTEND/src/components/ModalTerminal.tsx @@ -520,11 +520,13 @@ const ModalTerminal = ({ Issue: - {line?.latestScenario?.detectAI?.issue?.map((el, i) => ( - - - {el} - - ))} + {(line?.latestScenario?.detectAI?.issue || [])?.map( + (el, i) => ( + + - {el} + + ) + )} ) : (