mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-06 04:51:44 -07:00
feat: update_frontend_online_parsing
Address changes in backend member.js service to properly display offline, relayed, or online peer status.
This commit is contained in:
parent
efb768fcef
commit
cd6699d9b7
1 changed files with 22 additions and 12 deletions
|
@ -101,19 +101,29 @@ function NetworkMembers({ network }) {
|
||||||
name: "Peer status",
|
name: "Peer status",
|
||||||
minWidth: "100px",
|
minWidth: "100px",
|
||||||
cell: (row) =>
|
cell: (row) =>
|
||||||
row.online ? (
|
(row.online == 0) ? (
|
||||||
<Typography style={{ color: "#008000" }}>
|
|
||||||
{"ONLINE (v" +
|
|
||||||
row.config.vMajor +
|
|
||||||
"." +
|
|
||||||
row.config.vMinor +
|
|
||||||
"." +
|
|
||||||
row.config.vRev +
|
|
||||||
")"}
|
|
||||||
</Typography>
|
|
||||||
) : (
|
|
||||||
<Typography color="error">OFFLINE</Typography>
|
<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",
|
id: "delete",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue