|
|
|
@ -89,6 +89,9 @@ export class GatewayConnectorComponent implements OnInit { |
|
|
|
this.gatewayConnectorsGroup = this.fb.group({ |
|
|
|
connectors: this.fb.array([], [Validators.required]) |
|
|
|
}); |
|
|
|
this.gatewayConnectorsGroup.valueChanges.subscribe(_=>{ |
|
|
|
this.cd.detectChanges(); |
|
|
|
}); |
|
|
|
this.getConnectorsData(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -133,6 +136,9 @@ export class GatewayConnectorComponent implements OnInit { |
|
|
|
]).subscribe(_=> { |
|
|
|
if (this.dialogRef) { |
|
|
|
this.dialogRef.close(); |
|
|
|
} else { |
|
|
|
this.gatewayConnectorsGroup.markAsPristine(); |
|
|
|
this.cd.detectChanges(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|