From 3c48ef67dc012814f2dfb2d12deee989af47f4d6 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 18 May 2024 22:36:46 +0700 Subject: [PATCH] Change how ports are listed in the node info dialog --- src/app/services/info.service.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/services/info.service.ts b/src/app/services/info.service.ts index b1a4cc94..43783fd5 100644 --- a/src/app/services/info.service.ts +++ b/src/app/services/info.service.ts @@ -39,14 +39,17 @@ export class InfoService { if (node.console_type !== 'none' && node.console_type !== 'null') { infoList.push(`Console is on port ${node.console} and type is ${node.console_type}.`); } - infoList = infoList.concat(this.getInfoAboutPorts(node.ports)); + node.ports.forEach((port) => { + infoList.push(`Port ${port.name} is ${port.link_type}.`); + }); + //infoList = infoList.concat(this.getInfoAboutPorts(node.ports)); return infoList; } getInfoAboutPorts(ports: Port[]): string { let response: string = `Ports: `; ports.forEach((port) => { - response += `link_type: ${port.link_type}, + response += `link_type: ${port.link_type},\n name: ${port.name}; `; }); response = response.substring(0, response.length - 2);