mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-27 11:46:37 +00:00
Enforce min/max for mat-input fields for Frame-Relay switch
This commit is contained in:
parent
9287706185
commit
a3d149dcbe
@ -53,6 +53,7 @@
|
|||||||
<input
|
<input
|
||||||
matInput
|
matInput
|
||||||
type="number"
|
type="number"
|
||||||
|
min="0"
|
||||||
[(ngModel)]="destinationPort"
|
[(ngModel)]="destinationPort"
|
||||||
formControlName="destinationPort"
|
formControlName="destinationPort"
|
||||||
placeholder="Port"
|
placeholder="Port"
|
||||||
@ -62,6 +63,7 @@
|
|||||||
<input
|
<input
|
||||||
matInput
|
matInput
|
||||||
type="number"
|
type="number"
|
||||||
|
min="1"
|
||||||
[(ngModel)]="destinationDlci"
|
[(ngModel)]="destinationDlci"
|
||||||
formControlName="destinationDlci"
|
formControlName="destinationDlci"
|
||||||
placeholder="DLCI"
|
placeholder="DLCI"
|
||||||
|
@ -90,9 +90,9 @@ export class ConfiguratorDialogSwitchComponent implements OnInit {
|
|||||||
|
|
||||||
clearUserInput() {
|
clearUserInput() {
|
||||||
this.sourcePort = '0';
|
this.sourcePort = '0';
|
||||||
this.sourceDlci = '0';
|
this.sourceDlci = '1';
|
||||||
this.destinationPort = '0';
|
this.destinationPort = '0';
|
||||||
this.destinationDlci = '0';
|
this.destinationDlci = '1';
|
||||||
}
|
}
|
||||||
|
|
||||||
strMapToObj(strMap) {
|
strMapToObj(strMap) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user