Remove tag: and do not show traffic for self

main
Gerard Braad 2023-07-15 00:32:26 +08:00
parent b7dbce5824
commit 868d93ba5a
1 changed files with 5 additions and 2 deletions

View File

@ -105,7 +105,7 @@ class Peer extends React.Component<TailscalePeer> {
var tags = "-" var tags = "-"
if (this.props.Tags) { if (this.props.Tags) {
const mapped_items = this.props.Tags?.map(t => { return t }) const mapped_items = this.props.Tags?.map(t => { return t.split(":")[1] })
tags = mapped_items.join(', ') tags = mapped_items.join(', ')
} }
@ -140,7 +140,10 @@ class Peer extends React.Component<TailscalePeer> {
: "-" : "-"
}</Td> }</Td>
<Td>{this.props.OS}</Td> <Td>{this.props.OS}</Td>
<Td>{this.props.TxBytes} / {this.props.RxBytes}</Td> <Td>{this.props.Self
? "-"
: "" + this.props.TxBytes + " / " + this.props.RxBytes
}</Td>
</Tr>); </Tr>);
} }
} }