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/02/12 12:02:52 UTC

[incubator-streampipes] branch dev updated: Fix bug in mapping property component

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


The following commit(s) were added to refs/heads/dev by this push:
     new 38a3d32  Fix bug in mapping property component
38a3d32 is described below

commit 38a3d32b585976d66eb37ec42348a1f46ab3965c
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Wed Feb 12 13:02:40 2020 +0100

    Fix bug in mapping property component
---
 .../static-mapping-nary/static-mapping-nary.component.html              | 2 +-
 .../static-mapping-nary/static-mapping-nary.component.ts                | 2 ++
 .../static-mapping-unary/static-mapping-unary.component.html            | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ui/src/app/connect/static-properties/static-mapping-nary/static-mapping-nary.component.html b/ui/src/app/connect/static-properties/static-mapping-nary/static-mapping-nary.component.html
index 647a2cf..150600f 100644
--- a/ui/src/app/connect/static-properties/static-mapping-nary/static-mapping-nary.component.html
+++ b/ui/src/app/connect/static-properties/static-mapping-nary/static-mapping-nary.component.html
@@ -26,7 +26,7 @@
                 <mat-checkbox *ngFor="let property of availableProperties"
                               (change)="selectOption(property, $event)"
                               style="margin-left: 10px;">
-                    {{getName(property)}}
+                    {{property.runtimeName}}
                 </mat-checkbox>
     </div>
 </div>
\ No newline at end of file
diff --git a/ui/src/app/connect/static-properties/static-mapping-nary/static-mapping-nary.component.ts b/ui/src/app/connect/static-properties/static-mapping-nary/static-mapping-nary.component.ts
index 0469a62..6817b43 100644
--- a/ui/src/app/connect/static-properties/static-mapping-nary/static-mapping-nary.component.ts
+++ b/ui/src/app/connect/static-properties/static-mapping-nary/static-mapping-nary.component.ts
@@ -53,6 +53,8 @@ export class StaticMappingNaryComponent extends StaticMappingComponent implement
         if (!this.staticProperty.selectedProperties) {
             this.staticProperty.selectedProperties = [];
         }
+        console.log(this.eventSchema);
+        console.log(this.staticProperty);
     }
 
     selectOption(property: EventProperty, $event) {
diff --git a/ui/src/app/connect/static-properties/static-mapping-unary/static-mapping-unary.component.html b/ui/src/app/connect/static-properties/static-mapping-unary/static-mapping-unary.component.html
index 22e0325..19b3c18 100644
--- a/ui/src/app/connect/static-properties/static-mapping-unary/static-mapping-unary.component.html
+++ b/ui/src/app/connect/static-properties/static-mapping-unary/static-mapping-unary.component.html
@@ -28,7 +28,7 @@
                 <!--<mat-form-field class="example-full-width">-->
                 <mat-select [placeholder]="staticProperty.label" [(value)]="staticProperty.selectedProperty">
                     <mat-option *ngFor="let property of availableProperties " [value]="property.propertySelector">
-                        {{getName(property)}}
+                        {{property.runtimeName}}
                     </mat-option>
                 </mat-select>
             </mat-form-field>