Commits
Alisa Ismailati authored and Stefano Maffei committed 1153c906acc Merge
272 272 | |
273 273 | /** |
274 274 | * Toggles the value of the 'automatic' control at the specified index in the notifyServiceInboundPatterns form array. |
275 275 | * |
276 276 | * @param {number} i - The index of the 'automatic' control to toggle. |
277 277 | * @memberof LdnServiceFormComponent |
278 278 | */ |
279 279 | toggleAutomatic(i: number) { |
280 280 | const automaticControl = this.formModel.get(`notifyServiceInboundPatterns.${i}.automatic`); |
281 281 | if (automaticControl) { |
282 + | automaticControl.markAsTouched(); |
282 283 | automaticControl.setValue(!automaticControl.value); |
283 284 | } |
284 285 | } |
285 286 | |
286 287 | /** |
287 288 | * Selects an outbound pattern for a specific index in the notifyServiceOutboundPatterns form array. |
288 289 | * |
289 290 | * @param {string} patternValue - The selected pattern value. |
290 291 | * @param {number} index - The index of the outbound pattern in the form array. |
291 292 | */ |