mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-16 14:38:52 +00:00
fix for creating ethernet switches and hubs
This commit is contained in:
parent
09a03ea013
commit
ee784783a9
@ -11,7 +11,7 @@
|
||||
<input formControlName="templateName" matInput type="text" placeholder="Template name">
|
||||
</mat-form-field>
|
||||
<mat-form-field class="form-field">
|
||||
<input formControlName="numberOfPorts" matInput type="text" placeholder="Number of ports">
|
||||
<input formControlName="numberOfPorts" matInput type="number" placeholder="Number of ports">
|
||||
</mat-form-field>
|
||||
</form>
|
||||
</mat-card>
|
||||
|
@ -31,7 +31,7 @@ export class EthernetHubsAddTemplateComponent implements OnInit {
|
||||
) {
|
||||
this.formGroup = this.formBuilder.group({
|
||||
templateName: new FormControl('', Validators.required),
|
||||
numberOfPorts: new FormControl('', Validators.required)
|
||||
numberOfPorts: new FormControl(8, Validators.required)
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
<input formControlName="templateName" matInput type="text" placeholder="Template name">
|
||||
</mat-form-field>
|
||||
<mat-form-field class="form-field">
|
||||
<input formControlName="numberOfPorts" matInput type="text" placeholder="Number of ports">
|
||||
<input formControlName="numberOfPorts" matInput type="number" placeholder="Number of ports">
|
||||
</mat-form-field>
|
||||
</form>
|
||||
</mat-card>
|
||||
|
@ -31,7 +31,7 @@ export class EthernetSwitchesAddTemplateComponent implements OnInit {
|
||||
) {
|
||||
this.formGroup = this.formBuilder.group({
|
||||
templateName: new FormControl('', Validators.required),
|
||||
numberOfPorts: new FormControl('', Validators.required)
|
||||
numberOfPorts: new FormControl(8, Validators.required)
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user