mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-06 13:01:46 -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,7 +101,10 @@ function NetworkMembers({ network }) {
|
|||
name: "Peer status",
|
||||
minWidth: "100px",
|
||||
cell: (row) =>
|
||||
row.online ? (
|
||||
(row.online == 0) ? (
|
||||
<Typography color="error">OFFLINE</Typography>
|
||||
) : ( (row.online == 1) ? (
|
||||
|
||||
<Typography style={{ color: "#008000" }}>
|
||||
{"ONLINE (v" +
|
||||
row.config.vMajor +
|
||||
|
@ -112,8 +115,15 @@ function NetworkMembers({ network }) {
|
|||
")"}
|
||||
</Typography>
|
||||
) : (
|
||||
<Typography color="error">OFFLINE</Typography>
|
||||
),
|
||||
<Typography style={{ color: "#f1c232" }}>
|
||||
{"RELAYED (v" +
|
||||
row.config.vMajor +
|
||||
"." +
|
||||
row.config.vMinor +
|
||||
"." +
|
||||
row.config.vRev +
|
||||
")"}
|
||||
)),
|
||||
},
|
||||
{
|
||||
id: "delete",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue