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/07/16 21:05:55 UTC

[incubator-streampipes] 01/02: [STREAMPIPES-145] Restrict output strategy rendering to customizable output strategies

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch STREAMPIPES-145
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit 3791c49c30d1d31eeffe8508534bf81c53a292c7
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Thu Jul 16 22:37:09 2020 +0200

    [STREAMPIPES-145] Restrict output strategy rendering to customizable output strategies
---
 .../components/output-strategy/output-strategy.component.html         | 2 +-
 .../editor-v2/components/output-strategy/output-strategy.component.ts | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ui/src/app/editor-v2/components/output-strategy/output-strategy.component.html b/ui/src/app/editor-v2/components/output-strategy/output-strategy.component.html
index 9e7a6c3..0db80dc 100644
--- a/ui/src/app/editor-v2/components/output-strategy/output-strategy.component.html
+++ b/ui/src/app/editor-v2/components/output-strategy/output-strategy.component.html
@@ -16,7 +16,7 @@
   ~
   -->
 
-<div fxFlex="100" fxLayout="column">
+<div fxFlex="100" fxLayout="column" *ngIf="customizableOutputStrategy">
     <div fxFlex="100" fxLayout="row" class="static-property-panel">
         <div fxFlex="30" fxLayout="column">
             <b>Select output</b>
diff --git a/ui/src/app/editor-v2/components/output-strategy/output-strategy.component.ts b/ui/src/app/editor-v2/components/output-strategy/output-strategy.component.ts
index 2f6f298..db33b0f 100644
--- a/ui/src/app/editor-v2/components/output-strategy/output-strategy.component.ts
+++ b/ui/src/app/editor-v2/components/output-strategy/output-strategy.component.ts
@@ -41,6 +41,10 @@ export class OutputStrategyComponent implements OnInit {
 
   label: string;
 
+  customizableOutputStrategy: boolean;
+
   ngOnInit(): void {
+    this.customizableOutputStrategy = this.outputStrategy['@class'] === 'org.apache.streampipes.model.output.CustomOutputStrategy' ||
+        this.outputStrategy['@class'] === 'org.apache.streampipes.model.output.UserDefinedOutputStrategy';
   }
 }
\ No newline at end of file