This is an automated email from the ASF dual-hosted git repository. zehnder pushed a commit to branch hotfix-edit-correction-value-remove-unused-event-emitter in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit b1fb318426ba62c0f31871bcc1fbf743ea8e9ed6 Author: Philipp Zehnder <[email protected]> AuthorDate: Mon Oct 7 17:13:12 2024 +0200 refactor: Remove unused event emitter --- .../edit-correction-value.component.html | 2 -- .../edit-correction-value.component.ts | 19 +------------------ 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-correction-value/edit-correction-value.component.html b/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-correction-value/edit-correction-value.component.html index a7435e21b7..921d1b536f 100644 --- a/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-correction-value/edit-correction-value.component.html +++ b/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-correction-value/edit-correction-value.component.html @@ -39,7 +39,6 @@ [(ngModel)]=" cachedProperty.additionalMetadata.correctionValue " - (change)="valueChanged()" data-cy="connect-schema-correction-value" /> </mat-form-field> @@ -50,7 +49,6 @@ required placeholder="Math Operator" [(ngModel)]="cachedProperty.additionalMetadata.operator" - (selectionChange)="valueChanged()" [disabled]=" !cachedProperty.additionalMetadata.correctionValue " diff --git a/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-correction-value/edit-correction-value.component.ts b/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-correction-value/edit-correction-value.component.ts index 1b16d86c85..68b5abce1e 100644 --- a/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-correction-value/edit-correction-value.component.ts +++ b/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-correction-value/edit-correction-value.component.ts @@ -16,7 +16,7 @@ * */ -import { Component, EventEmitter, Input, Output } from '@angular/core'; +import { Component, Input } from '@angular/core'; import { EventPropertyUnion } from '@streampipes/platform-services'; @Component({ @@ -27,27 +27,10 @@ import { EventPropertyUnion } from '@streampipes/platform-services'; export class EditCorrectionValueComponent { @Input() cachedProperty: EventPropertyUnion; - @Output() correctionValueChanged = new EventEmitter<boolean>(); - operators = [ { value: 'MULTIPLY', viewValue: 'Multiply' }, { value: 'ADD', viewValue: 'Add' }, { value: 'SUBTRACT', viewValue: 'Subtract' }, { value: 'DIVIDE', viewValue: 'Divide' }, ]; - - constructor() {} - - valueChanged() { - if (this.cachedProperty.additionalMetadata.correctionValue) { - if (!this.cachedProperty.additionalMetadata.operator) { - this.correctionValueChanged.emit(true); - } else { - this.correctionValueChanged.emit(false); - } - } else { - this.correctionValueChanged.emit(false); - this.cachedProperty.additionalMetadata.operator = undefined; - } - } }
