diff --git a/app/src/web/conn_table.py b/app/src/web/conn_table.py
index 4b81868..35d221d 100644
--- a/app/src/web/conn_table.py
+++ b/app/src/web/conn_table.py
@@ -10,39 +10,40 @@ from .log_handler import LogHandler
def _get_device_icon(client_mode: bool):
'''returns the icon for the device conntection'''
if client_mode:
- return 'fa-download fa-rotate-180'
+ return 'fa-download fa-rotate-180', 'Server Mode'
- return 'fa-upload fa-rotate-180'
+ return 'fa-upload fa-rotate-180', 'Client Mode'
def _get_cloud_icon(emu_mode: bool):
'''returns the icon for the cloud conntection'''
if emu_mode:
- return 'fa-cloud-arrow-up-alt'
+ return 'fa-cloud-arrow-up-alt', 'Emu Mode'
- return 'fa-cloud'
+ return 'fa-cloud', 'Proxy Mode'
def _get_row(inv: InverterBase):
'''build one row for the connection table'''
client_mode = inv.client_mode
inv_serial = inv.local.stream.inv_serial
- icon1 = _get_device_icon(client_mode)
+ icon1, descr1 = _get_device_icon(client_mode)
ip1, port1 = inv.addr
icon2 = ''
+ descr2 = ''
ip2 = '--'
port2 = '--'
if inv.remote.ifc:
ip2, port2 = inv.remote.ifc.r_addr
- icon2 = _get_cloud_icon(client_mode)
+ icon2, descr2 = _get_cloud_icon(client_mode)
row = []
- row.append(f' {ip1}:{port1}')
- row.append(f' {ip1}')
+ row.append(f' {ip1}:{port1}')
+ row.append(f' {ip1}')
row.append(inv_serial)
- row.append(f' {ip2}:{port2}')
- row.append(f' {ip2}')
+ row.append(f' {ip2}:{port2}')
+ row.append(f' {ip2}')
return row