This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new c9ed89ee50 refactor: Remove unused event emitter (#3289)
c9ed89ee50 is described below
commit c9ed89ee50e9de367d458392e2936a281164b9c4
Author: Philipp Zehnder <[email protected]>
AuthorDate: Tue Oct 8 07:05:16 2024 +0200
refactor: Remove unused event emitter (#3289)
---
.../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;
- }
- }
}