This is an automated email from the ASF dual-hosted git repository. riemer pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit 0821daea94b8511f38f84617c693e4cbece66338 Author: Dominik Riemer <[email protected]> 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) {
