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/17 21:25:22 UTC
[incubator-streampipes] 02/03: [hotfix] Improve loading of remote
static properties
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 b4c1d42d1735e38242ac8a60f7b6a366cfc63fae
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Thu Sep 17 23:21:10 2020 +0200
[hotfix] Improve loading of remote static properties
---
.../app/core-ui/dialog/confirm-dialog/confirm-dialog.component.html | 2 +-
ui/src/app/core-ui/dialog/confirm-dialog/confirm-dialog.component.ts | 4 ++++
.../static-mapping-unary/static-mapping-unary.component.ts | 4 +++-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ui/src/app/core-ui/dialog/confirm-dialog/confirm-dialog.component.html b/ui/src/app/core-ui/dialog/confirm-dialog/confirm-dialog.component.html
index 1d538c7..3cd9385 100644
--- a/ui/src/app/core-ui/dialog/confirm-dialog/confirm-dialog.component.html
+++ b/ui/src/app/core-ui/dialog/confirm-dialog/confirm-dialog.component.html
@@ -23,6 +23,6 @@
</div>
<div fxFlex="100" fxLayoutAlign="end center" class="footer">
<button mat-button (click)="onCancel()" *ngIf="data.confirmAndCancel">{{data.cancelTitle}}</button>
- <button mat-button [mat-dialog-close]="true" cdkFocusInitial>{{data.okTitle}}</button>
+ <button mat-button (click)="onOk()" cdkFocusInitial>{{data.okTitle}}</button>
</div>
</div>
\ No newline at end of file
diff --git a/ui/src/app/core-ui/dialog/confirm-dialog/confirm-dialog.component.ts b/ui/src/app/core-ui/dialog/confirm-dialog/confirm-dialog.component.ts
index ccd85bd..4f0e5a9 100644
--- a/ui/src/app/core-ui/dialog/confirm-dialog/confirm-dialog.component.ts
+++ b/ui/src/app/core-ui/dialog/confirm-dialog/confirm-dialog.component.ts
@@ -34,4 +34,8 @@ export class ConfirmDialogComponent {
onCancel(): void {
this.dialogRef.close();
}
+
+ onOk(): void {
+ this.dialogRef.close(true);
+ }
}
diff --git a/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts b/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts
index 0fef3ac..9500097 100644
--- a/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts
@@ -43,7 +43,9 @@ export class StaticMappingUnaryComponent extends StaticMappingComponent<MappingP
this.availableProperties = this.extractPossibleSelections();
this.availableProperties
.forEach(ep => ep.propertySelector = this.firstStreamPropertySelector + ep.runtimeName);
- if (!this.staticProperty.selectedProperty) {
+ console.log(this.staticProperty.selectedProperty);
+ if (!(this.staticProperty.selectedProperty)) {
+ console.log("setting property");
this.staticProperty.selectedProperty = this.availableProperties[0].propertySelector;
this.emitUpdate(true);
}