fix for creating ethernet switches and hubs

This commit is contained in:
piotrpekala7 2020-04-16 13:49:20 +02:00
parent 09a03ea013
commit ee784783a9
4 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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)
});
}

View File

@ -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>

View File

@ -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)
});
}