You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2020/09/26 19:04:40 UTC
[incubator-streampipes] 01/02: [STREAMPIPES-247] Fix bug that
caused alternative static properties to be validated incorrectly
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch rel/0.67.0
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit 2c8f657ac42183147953b596221b3cffb9e5a89e
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Sat Sep 26 10:50:19 2020 +0200
[STREAMPIPES-247] Fix bug that caused alternative static properties to be validated incorrectly
---
.../static-alternatives/static-alternatives.component.html | 4 +++-
.../static-alternatives/static-alternatives.component.ts | 1 -
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ui/src/app/core-ui/static-properties/static-alternatives/static-alternatives.component.html b/ui/src/app/core-ui/static-properties/static-alternatives/static-alternatives.component.html
index f79921f..cf6e2c7 100644
--- a/ui/src/app/core-ui/static-properties/static-alternatives/static-alternatives.component.html
+++ b/ui/src/app/core-ui/static-properties/static-alternatives/static-alternatives.component.html
@@ -37,13 +37,15 @@
</div>
- <div *ngFor="let alternative of staticProperty.alternatives">
+ <div *ngFor="let alternative of staticProperty.alternatives; let i = index">
<div *ngIf="alternative.selected == true && alternative.staticProperty != null">
<div style="padding-top: 0px; padding-bottom: 0px;
padding-left: 10px; padding-right: 10px">
<app-static-property [adapterId]="adapterId"
[eventSchemas]="eventSchemas"
[parentForm]="parentForm"
+ [staticProperties]="staticProperties"
+ [fieldName]="fieldName + '-' + alternative.staticProperty.internalName + '-' + i"
[staticProperty]="alternative.staticProperty"
[displayRecommended]="displayRecommended"
(validateEmitter)="valueChange($event)"
diff --git a/ui/src/app/core-ui/static-properties/static-alternatives/static-alternatives.component.ts b/ui/src/app/core-ui/static-properties/static-alternatives/static-alternatives.component.ts
index e6599b8..7eeb0c1 100644
--- a/ui/src/app/core-ui/static-properties/static-alternatives/static-alternatives.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-alternatives/static-alternatives.component.ts
@@ -38,7 +38,6 @@ export class StaticAlternativesComponent
}
ngOnInit(): void {
- this.staticProperty.alternatives.forEach( alternative => alternative.selected = false);
}
radioSelectionChange(event) {