mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-19 16:03:02 +00:00
[CST-12768] LDN Service edit "Automatic" flag fixed
This commit is contained in:
@@ -294,6 +294,7 @@ export class LdnServiceFormEditComponent implements OnInit {
|
|||||||
toggleAutomatic(i: number) {
|
toggleAutomatic(i: number) {
|
||||||
const automaticControl = this.formModel.get(`notifyServiceInboundPatterns.${i}.automatic`);
|
const automaticControl = this.formModel.get(`notifyServiceInboundPatterns.${i}.automatic`);
|
||||||
if (automaticControl) {
|
if (automaticControl) {
|
||||||
|
automaticControl.markAsTouched();
|
||||||
automaticControl.setValue(!automaticControl.value);
|
automaticControl.setValue(!automaticControl.value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -279,6 +279,7 @@ export class LdnServiceFormComponent implements OnInit {
|
|||||||
toggleAutomatic(i: number) {
|
toggleAutomatic(i: number) {
|
||||||
const automaticControl = this.formModel.get(`notifyServiceInboundPatterns.${i}.automatic`);
|
const automaticControl = this.formModel.get(`notifyServiceInboundPatterns.${i}.automatic`);
|
||||||
if (automaticControl) {
|
if (automaticControl) {
|
||||||
|
automaticControl.markAsTouched();
|
||||||
automaticControl.setValue(!automaticControl.value);
|
automaticControl.setValue(!automaticControl.value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user