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/03/08 22:57:26 UTC

[incubator-streampipes] branch dev updated: STREAMPIPES-91: Update pipeline in QuickEdit view

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 9a1d08d  STREAMPIPES-91: Update pipeline in QuickEdit view
9a1d08d is described below

commit 9a1d08d6723da1bf68059cc88d5aff12a2677712
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Sun Mar 8 23:57:15 2020 +0100

    STREAMPIPES-91: Update pipeline in QuickEdit view
---
 .../pipeline-details/components/edit/quickedit.controller.ts |  8 ++++++--
 .../app/pipeline-details/components/edit/quickedit.tmpl.html | 12 +-----------
 ui/src/app/pipeline-details/pipeline-details.html            |  3 ++-
 3 files changed, 9 insertions(+), 14 deletions(-)

diff --git a/ui/src/app/pipeline-details/components/edit/quickedit.controller.ts b/ui/src/app/pipeline-details/components/edit/quickedit.controller.ts
index 4afd5ce..2bbc374 100644
--- a/ui/src/app/pipeline-details/components/edit/quickedit.controller.ts
+++ b/ui/src/app/pipeline-details/components/edit/quickedit.controller.ts
@@ -16,15 +16,19 @@
  *
  */
 
+import {RestApi} from "../../../services/rest-api.service";
+
 export class QuickEditController {
 
     pipeline: any;
 
-    constructor() {
+    constructor(private restApi: RestApi) {
 
     }
 
     updatePipeline() {
-        console.log(this.pipeline);
+        this.restApi.updatePipeline(this.pipeline);
     }
 }
+
+QuickEditController.$inject = ['RestApi'];
diff --git a/ui/src/app/pipeline-details/components/edit/quickedit.tmpl.html b/ui/src/app/pipeline-details/components/edit/quickedit.tmpl.html
index 4a52eac..27fbcd5 100644
--- a/ui/src/app/pipeline-details/components/edit/quickedit.tmpl.html
+++ b/ui/src/app/pipeline-details/components/edit/quickedit.tmpl.html
@@ -19,7 +19,7 @@
 <div>
     <div class="assembly-options-preview sp-blue-bg">
         <div layout="row" layout-align="start center">
-            <h4>Quick Edit</h4>
+            <h4>Edit configuration</h4>
             <span flex></span>
             <md-button
                        class="md-icon-button" ng-click="ctrl.updatePipeline()" type="submit">
@@ -38,16 +38,6 @@
 
                 <div flex="100" layout="column" class="customize-item-main sp-blue-border-nopadding"
                      ng-repeat="staticProperty in ctrl.selectedElement.staticProperties">
-                    <div class="customize-item-title sp-blue-bg" layout="row" flex="100">
-                        <div flex="80" layout="row" layout-align="start center">
-                            {{staticProperty.properties.label}}
-                        </div>
-                        <div flex="20" layout="row" layout-align="end center" style="padding-left:10px;">
-                            <i class="material-icons"
-                               style="color: white;" popup-show="modules/editor/templates/popup.html"
-                               popup-placement="bottom">help</i>
-                        </div>
-                    </div>
                     <div class="md-padding">
                         <customize-dialog selected-element="ctrl.selectedElement"
                                           static-property="staticProperty"></customize-dialog>
diff --git a/ui/src/app/pipeline-details/pipeline-details.html b/ui/src/app/pipeline-details/pipeline-details.html
index 90c050e..93c9b68 100644
--- a/ui/src/app/pipeline-details/pipeline-details.html
+++ b/ui/src/app/pipeline-details/pipeline-details.html
@@ -23,7 +23,8 @@
                 <md-tab label="Overview" md-on-select="ctrl.setSelectedTab('overview')"></md-tab>
                 <md-tab label="Statistics" md-on-select="ctrl.setSelectedTab('statistics')"></md-tab>
                 <md-tab label="Errors" md-on-select="ctrl.setSelectedTab('errors')"></md-tab>
-                <md-tab label="QuickEdit" md-on-select="ctrl.setSelectedTab('quick-edit')"></md-tab>
+                <md-tab label="QuickEdit" md-on-select="ctrl.setSelectedTab('quick-edit')"
+                        ng-disabled="ctrl.pipeline.running"></md-tab>
             </md-tabs>
         </div>
     </div>