mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-28 08:48:50 +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') {
|
if (node.console_type !== 'none' && node.console_type !== 'null') {
|
||||||
infoList.push(`Console is on port ${node.console} and type is ${node.console_type}.`);
|
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;
|
return infoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
getInfoAboutPorts(ports: Port[]): string {
|
getInfoAboutPorts(ports: Port[]): string {
|
||||||
let response: string = `Ports: `;
|
let response: string = `Ports: `;
|
||||||
ports.forEach((port) => {
|
ports.forEach((port) => {
|
||||||
response += `link_type: ${port.link_type},
|
response += `link_type: ${port.link_type},\n
|
||||||
name: ${port.name}; `;
|
name: ${port.name}; `;
|
||||||
});
|
});
|
||||||
response = response.substring(0, response.length - 2);
|
response = response.substring(0, response.length - 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user