Skip to content

Commit

Permalink
feat: update_frontend_online_parsing
Browse files Browse the repository at this point in the history
Address changes in backend member.js service to properly display offline, relayed, or online peer status.
  • Loading branch information
timothyl13241 authored Dec 18, 2021
1 parent efb768f commit cd6699d
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions frontend/src/components/NetworkMembers/NetworkMembers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,29 @@ function NetworkMembers({ network }) {
name: "Peer status",
minWidth: "100px",
cell: (row) =>
row.online ? (
<Typography style={{ color: "#008000" }}>
{"ONLINE (v" +
row.config.vMajor +
"." +
row.config.vMinor +
"." +
row.config.vRev +
")"}
</Typography>
) : (
(row.online == 0) ? (
<Typography color="error">OFFLINE</Typography>
),
) : ( (row.online == 1) ? (

<Typography style={{ color: "#008000" }}>
{"ONLINE (v" +
row.config.vMajor +
"." +
row.config.vMinor +
"." +
row.config.vRev +
")"}
</Typography>
) : (
<Typography style={{ color: "#f1c232" }}>
{"RELAYED (v" +
row.config.vMajor +
"." +
row.config.vMinor +
"." +
row.config.vRev +
")"}
)),
},
{
id: "delete",
Expand Down

0 comments on commit cd6699d

Please sign in to comment.