[CST-12768] LDN Service edit "Automatic" flag fixed

This commit is contained in:
Alisa Ismailati
2023-11-23 11:35:02 +01:00
parent 27d891a88c
commit 867bf8aa23
2 changed files with 2 additions and 0 deletions

View File

@@ -294,6 +294,7 @@ export class LdnServiceFormEditComponent implements OnInit {
toggleAutomatic(i: number) {
const automaticControl = this.formModel.get(`notifyServiceInboundPatterns.${i}.automatic`);
if (automaticControl) {
automaticControl.markAsTouched();
automaticControl.setValue(!automaticControl.value);
}
}

View File

@@ -279,6 +279,7 @@ export class LdnServiceFormComponent implements OnInit {
toggleAutomatic(i: number) {
const automaticControl = this.formModel.get(`notifyServiceInboundPatterns.${i}.automatic`);
if (automaticControl) {
automaticControl.markAsTouched();
automaticControl.setValue(!automaticControl.value);
}
}