mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-21 02:01:19 +00:00
Fix for configurator name
This commit is contained in:
parent
32dc9e3c07
commit
9ab7616d89
@ -1,4 +1,4 @@
|
||||
<h1 mat-dialog-title>Configurator for node {{node.name}}</h1>
|
||||
<h1 mat-dialog-title>Configurator for node {{name}}</h1>
|
||||
|
||||
<div class="modal-form-container">
|
||||
<div class="content">
|
||||
|
@ -18,7 +18,7 @@ export class ConfiguratorDialogEthernetSwitchComponent implements OnInit {
|
||||
@ViewChild(PortsComponent, {static: false}) portsComponent: PortsComponent;
|
||||
server: Server;
|
||||
node: Node;
|
||||
|
||||
name: string;
|
||||
inputForm: FormGroup;
|
||||
consoleTypes: string[] = [];
|
||||
|
||||
@ -37,6 +37,7 @@ export class ConfiguratorDialogEthernetSwitchComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.nodeService.getNode(this.server, this.node).subscribe((node: Node) => {
|
||||
this.node = node;
|
||||
this.name = this.node.name;
|
||||
this.getConfiguration();
|
||||
})
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<h1 mat-dialog-title>Configurator for node {{node.name}}</h1>
|
||||
<h1 mat-dialog-title>Configurator for node {{name}}</h1>
|
||||
|
||||
<div class="modal-form-container">
|
||||
<div class="content">
|
||||
|
@ -20,6 +20,7 @@ export class ConfiguratorDialogEthernetHubComponent implements OnInit {
|
||||
inputForm: FormGroup;
|
||||
consoleTypes: string[] = [];
|
||||
categories = [];
|
||||
name: string;
|
||||
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<ConfiguratorDialogEthernetHubComponent>,
|
||||
@ -36,6 +37,7 @@ export class ConfiguratorDialogEthernetHubComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.nodeService.getNode(this.server, this.node).subscribe((node: Node) => {
|
||||
this.node = node;
|
||||
this.name = this.node.name;
|
||||
this.numberOfPorts = this.node.ports.length;
|
||||
this.getConfiguration();
|
||||
})
|
||||
|
@ -1,4 +1,4 @@
|
||||
<h1 mat-dialog-title>Configurator for node {{node.name}}</h1>
|
||||
<h1 mat-dialog-title>Configurator for node {{name}}</h1>
|
||||
|
||||
<div class="modal-form-container">
|
||||
<div class="content">
|
||||
|
@ -16,7 +16,7 @@ import { MatDialogRef } from '@angular/material';
|
||||
export class ConfiguratorDialogVpcsComponent implements OnInit {
|
||||
server: Server;
|
||||
node: Node;
|
||||
|
||||
name: string;
|
||||
inputForm: FormGroup;
|
||||
consoleTypes: string[] = [];
|
||||
|
||||
@ -35,6 +35,7 @@ export class ConfiguratorDialogVpcsComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.nodeService.getNode(this.server, this.node).subscribe((node: Node) => {
|
||||
this.node = node;
|
||||
this.name = node.name;
|
||||
this.getConfiguration();
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user