Display state in color

This commit is contained in:
2025-11-20 19:31:17 +01:00
parent 7203671b18
commit 6b70842b61

View File

@@ -49,7 +49,12 @@ export function WSDebugRoute(): React.ReactElement {
return ( return (
<MatrixGWRouteContainer label={"WebSocket Debug"}> <MatrixGWRouteContainer label={"WebSocket Debug"}>
State: {state} <div>
State:{" "}
<span style={{ color: state == State.Connected ? "green" : "red" }}>
{state}
</span>
</div>
{messages.map((msg, id) => ( {messages.map((msg, id) => (
<div style={{ margin: "10px", backgroundColor: "black" }}> <div style={{ margin: "10px", backgroundColor: "black" }}>
<JsonView <JsonView