Update info-dialog-component

This commit is contained in:
Piotr Pekala 2019-08-20 04:44:14 -07:00
parent 672c6577e2
commit 0524099dce
2 changed files with 10 additions and 2 deletions

View File

@ -14,7 +14,7 @@
Please start the node in order to get the command line information.
</div>
<div class="textBox">
{{command_line}}
{{commandLine}}
</div>
</mat-tab>
</mat-tab-group>

View File

@ -56,7 +56,15 @@ export class InfoService {
}
getCommandLine(node: Node): string {
if (node.node_type === 'cloud' || "nat" || "ethernet_hub" || "ethernet_switch" || "frame_relay_switch" || "atm_switch" || "dynamips" || "traceng" || "iou") {
if (node.node_type === "cloud" ||
node.node_type === "nat" ||
node.node_type === "ethernet_hub" ||
node.node_type === "ethernet_switch" ||
node.node_type === "frame_relay_switch" ||
node.node_type === "atm_switch" ||
node.node_type === "dynamips" ||
node.node_type === "traceng" ||
node.node_type === "iou") {
return 'Command line information is not supported for this type of node.';
} else {
if (node.status === 'started') {