From 35c45850e796539eddf7f56e100005e133c30f02 Mon Sep 17 00:00:00 2001 From: Mattia Vianelli Date: Wed, 15 Nov 2023 11:57:14 +0100 Subject: [PATCH] CST-12455 Itemfilter dropdown for the edit inboundpatterns is working, now changing all remaining code and finalizing task --- .../ldn-service-form-edit.component.html | 37 +++++++++++++++---- .../ldn-service-form-edit.component.ts | 14 +++++++ 2 files changed, 44 insertions(+), 7 deletions(-) diff --git a/src/app/admin/admin-ldn-services/ldn-service-form-edit/ldn-service-form-edit.component.html b/src/app/admin/admin-ldn-services/ldn-service-form-edit/ldn-service-form-edit.component.html index 0ea17d6fdd..51abf43f04 100644 --- a/src/app/admin/admin-ldn-services/ldn-service-form-edit/ldn-service-form-edit.component.html +++ b/src/app/admin/admin-ldn-services/ldn-service-form-edit/ldn-service-form-edit.component.html @@ -103,11 +103,11 @@ /> -
{{ selectedInboundPatterns ? ('ldn-service.form.pattern.' + selectedInboundPatterns + '.label' | translate) : ('ldn-new-service.form.label.placeholder.outboundPattern' | translate) }}
+
{{ selectedInboundPatterns ? ('ldn-service.form.pattern.' + selectedInboundPatterns + '.label' | translate) : ('ldn-new-service.form.label.placeholder.inboundPattern' | translate) }}
{{ selectedInboundPatterns ? ('ldn-service.form.pattern.' + selectedInboundPatterns + '.description' | translate) : ('' | translate) }}
-
+
+
+
+ diff --git a/src/app/admin/admin-ldn-services/ldn-service-form-edit/ldn-service-form-edit.component.ts b/src/app/admin/admin-ldn-services/ldn-service-form-edit/ldn-service-form-edit.component.ts index 9c0e60040c..fdb07226aa 100644 --- a/src/app/admin/admin-ldn-services/ldn-service-form-edit/ldn-service-form-edit.component.ts +++ b/src/app/admin/admin-ldn-services/ldn-service-form-edit/ldn-service-form-edit.component.ts @@ -67,6 +67,7 @@ export class LdnServiceFormEditComponent implements OnInit { private modalRef: any; private service: LdnService; selectedOutboundPatterns: string[]; + selectedInboundItemfilters: any; selectedInboundPatterns: string[]; constructor( @@ -214,6 +215,16 @@ export class LdnServiceFormEditComponent implements OnInit { //this.getPatternControlNames(index) } + selectInboundItemFilter(filterValue: string, index: number): void { + // this.selectedOutboundPatterns = patternValue; + const filterArray = (this.formModel.get('notifyServiceInboundPatterns') as FormArray) + console.log((this.formModel.get('notifyServiceInboundPatterns') as FormArray)) + filterArray.controls[index].patchValue({constraint: filterValue} ) + + //console.log(patternArray); + //this.getPatternControlNames(index) + } + selectInboundPattern(patternValue: string, index: number): void { // this.selectedOutboundPatterns = patternValue; const patternArray = (this.formModel.get('notifyServiceInboundPatterns') as FormArray) @@ -474,4 +485,7 @@ export class LdnServiceFormEditComponent implements OnInit { //console.warn('inside setValueForControlInOutboundArray', formArray); //formArray.at(index).setValue(value); //} + + + }