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/04/13 21:06:18 UTC
[incubator-streampipes] branch dev updated: Delay trigger of
mapping property selection
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 172028f Delay trigger of mapping property selection
172028f is described below
commit 172028f1f903961bfe2cd06c9c894c559343e884
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Mon Apr 13 23:06:56 2020 +0200
Delay trigger of mapping property selection
---
.../app/editor/components/mappingunary/mappingunary.controller.ts | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/ui/src/app/editor/components/mappingunary/mappingunary.controller.ts b/ui/src/app/editor/components/mappingunary/mappingunary.controller.ts
index 38fa306..8a525e8 100644
--- a/ui/src/app/editor/components/mappingunary/mappingunary.controller.ts
+++ b/ui/src/app/editor/components/mappingunary/mappingunary.controller.ts
@@ -28,7 +28,7 @@ export class MappingUnaryController {
$rootScope: any;
PropertySelectorService: PropertySelectorService;
- constructor($scope, $rootScope, PropertySelectorService) {
+ constructor($scope, $rootScope, PropertySelectorService, private $timeout) {
this.$scope = $scope;
this.$rootScope = $rootScope;
this.PropertySelectorService = PropertySelectorService;
@@ -45,7 +45,9 @@ export class MappingUnaryController {
if (!this.staticProperty.properties.selectedProperty) {
this.staticProperty.properties.selectedProperty = this.availableProperties[0].properties.runtimeId;
- this.$rootScope.$emit(this.staticProperty.properties.internalName);
+ this.$timeout(() => {
+ this.$rootScope.$emit(this.staticProperty.properties.internalName);
+ }, 20);
}
}
@@ -60,4 +62,4 @@ export class MappingUnaryController {
}
}
-MappingUnaryController.$inject=['$scope', '$rootScope', 'PropertySelectorService']
\ No newline at end of file
+MappingUnaryController.$inject=['$scope', '$rootScope', 'PropertySelectorService', '$timeout'];
\ No newline at end of file