mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-27 00:21:03 +00:00
Change how ports are listed in the node info dialog
This commit is contained in:
parent
d411ece90e
commit
3c48ef67dc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user