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 2021/05/20 09:17:36 UTC

[incubator-streampipes] 01/02: [STREAMPIPES-362] Disable preview button for empty pipelines

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 3dc36f49396ebfecf3f24c7f73d9fc111f86e5ed
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Thu May 20 10:59:09 2021 +0200

    [STREAMPIPES-362] Disable preview button for empty pipelines
---
 .../components/pipeline-assembly/pipeline-assembly.component.html     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly.component.html b/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly.component.html
index c41b62c..bf42643 100644
--- a/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly.component.html
+++ b/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly.component.html
@@ -23,7 +23,7 @@
                     [disabled]="!PipelineValidationService.pipelineValid"
                     (click)="submit()" type="submit">
                 <div fxLayoutAlign="start center" fxLayout="row">
-                    <i class="material-icons">save</i>&nbsp;
+                    <i class="material-icons">save</i>
                     <span>&nbsp;Save pipeline</span>
                 </div>
             </button>
@@ -40,7 +40,7 @@
 <!--                <i class="material-icons">mode_edit</i>-->
 <!--            </button>-->
             <button mat-button matTooltip="Data Preview" [matTooltipPosition]="'above'"
-                    (click)="triggerPipelinePreview()">
+                    (click)="triggerPipelinePreview()" [disabled]="isPipelineAssemblyEmpty()">
                 <div fxLayoutAlign="start center" fxLayout="row">
                     <i class="material-icons">visibility</i>
                     <span *ngIf="!pipelineComponent.previewModeActive">&nbsp;Enable live preview</span>