mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-20 06:56:20 -05:00
clean up ui
This commit is contained in:
parent
2490b870aa
commit
00dec8cc44
2 changed files with 9 additions and 3 deletions
|
|
@ -857,7 +857,9 @@ class ReticulumMeshChat:
|
|||
# add interface hashes
|
||||
interface_instance = self.find_interface_by_name(interface["name"])
|
||||
if interface_instance is not None:
|
||||
interface["type"] = type(interface_instance).__name__
|
||||
interface["hash"] = interface_instance.get_hash().hex()
|
||||
interface["interface_name"] = interface_instance.name
|
||||
if hasattr(interface_instance, "parent_interface") and interface_instance.parent_interface is not None:
|
||||
interface["parent_interface_name"] = str(interface_instance.parent_interface)
|
||||
interface["parent_interface_hash"] = interface_instance.parent_interface.get_hash().hex()
|
||||
|
|
|
|||
|
|
@ -120,13 +120,17 @@ export default {
|
|||
// add interfaces
|
||||
for(const entry of this.interfaces){
|
||||
|
||||
// skip local server interface
|
||||
if(entry.type === "LocalServerInterface"){
|
||||
continue;
|
||||
}
|
||||
|
||||
const node = {
|
||||
id: entry.name,
|
||||
group: "interface",
|
||||
label: entry.name,
|
||||
label: entry.parent_interface_name != null ? entry.name : entry.interface_name,
|
||||
title: [
|
||||
`Interface`,
|
||||
`Name: ${entry.name}`,
|
||||
entry.name,
|
||||
`State: ${entry.status ? 'Online' : 'Offline'}`,
|
||||
`Bitrate: ${this.formatBitsPerSecond(entry.bitrate)}`,
|
||||
`TX: ${this.formatBytes(entry.txb)}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue