From 16ed546b7d64a5f927a8e3341a810ca0c60cd1ba Mon Sep 17 00:00:00 2001 From: ck-c8y Date: Fri, 8 Nov 2024 18:38:18 +0100 Subject: [PATCH] remove debug messages --- .../mapping-properties.component.ts | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/dynamic-mapping-ui/src/mapping/step-property/mapping-properties.component.ts b/dynamic-mapping-ui/src/mapping/step-property/mapping-properties.component.ts index 37248aea..b101b455 100644 --- a/dynamic-mapping-ui/src/mapping/step-property/mapping-properties.component.ts +++ b/dynamic-mapping-ui/src/mapping/step-property/mapping-properties.component.ts @@ -52,14 +52,8 @@ export class MappingStepPropertiesComponent implements OnInit, OnChanges, OnDestroy { @Input() mapping: Mapping; - @Input() - set supportsMessageContext(value: any) { - this._supportsMessageContext = value; - } + @Input() supportsMessageContext: boolean; - get supportsMessageContext(): any { - return this._supportsMessageContext; - } @Input() stepperConfiguration: StepperConfiguration; @Input() propertyFormly: FormGroup; @@ -75,7 +69,6 @@ export class MappingStepPropertiesComponent selectedResult$: BehaviorSubject = new BehaviorSubject(0); sourceSystem: string; targetSystem: string; - _supportsMessageContext: boolean; constructor( mappingService: MappingService, @@ -86,7 +79,7 @@ export class MappingStepPropertiesComponent ngOnChanges(changes: SimpleChanges) { if (changes['supportsMessageContext']) { - this._supportsMessageContext = + this.supportsMessageContext = changes['supportsMessageContext'].currentValue; this.propertyFormlyFields = [...this.propertyFormlyFields]; console.log('Changes', changes); @@ -453,13 +446,7 @@ export class MappingStepPropertiesComponent 'Supports key from message context, e.g. partition keys for Kafka. This property only applies to certain connectors.', hideLabel: true }, - hideExpression: () => { - console.log( - 'supportsMessageContext', - this._supportsMessageContext - ); - return !this._supportsMessageContext; - } + hideExpression: () => !this.supportsMessageContext } ] }