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/03 22:11:40 UTC
[incubator-streampipes] branch dev updated: STREAMPIPES-89: Display
status message after modification of 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
The following commit(s) were added to refs/heads/dev by this push:
new ab06f17 STREAMPIPES-89: Display status message after modification of pipelines
ab06f17 is described below
commit ab06f1774d3d4938e48208cadbd207c61c990c60
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Tue Mar 3 23:11:26 2020 +0100
STREAMPIPES-89: Display status message after modification of pipelines
---
.../org/apache/streampipes/rest/impl/PipelineWithUserResource.java | 2 +-
ui/src/app/editor/dialog/save-pipeline/save-pipeline.controller.ts | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/PipelineWithUserResource.java b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/PipelineWithUserResource.java
index 1ccf4b9..9ebeebb 100644
--- a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/PipelineWithUserResource.java
+++ b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/PipelineWithUserResource.java
@@ -172,7 +172,7 @@ public class PipelineWithUserResource extends AbstractRestInterface implements I
pipeline.setCreatedAt(new Date().getTime());
//userService.addOwnPipeline(username, pipeline);
Operations.storePipeline(pipeline);
- SuccessMessage message = Notifications.success(NotificationType.PIPELINE_STORAGE_SUCCESS);
+ SuccessMessage message = Notifications.success("Pipeline stored");
message.addNotification(new Notification("id", pipelineId));
return ok(message);
}
diff --git a/ui/src/app/editor/dialog/save-pipeline/save-pipeline.controller.ts b/ui/src/app/editor/dialog/save-pipeline/save-pipeline.controller.ts
index b18ca72..4acce55 100644
--- a/ui/src/app/editor/dialog/save-pipeline/save-pipeline.controller.ts
+++ b/ui/src/app/editor/dialog/save-pipeline/save-pipeline.controller.ts
@@ -72,13 +72,13 @@ export class SavePipelineController {
displayErrors(data) {
for (var i = 0, notification; notification = data.notifications[i]; i++) {
- this.showToast("error", notification.description, notification.title);
+ this.showToast("error", notification.title, notification.description);
}
}
displaySuccess(data) {
if (data.notifications.length > 0) {
- this.showToast("success", data.notifications[0].description, data.notifications[0].title);
+ this.showToast("success", data.notifications[0].title, data.notifications[0].description);
}
}
@@ -114,7 +114,7 @@ export class SavePipelineController {
this.displayErrors(data);
}
}, data => {
- this.showToast("error", "Could not fulfill request", "Connection Error");
+ this.showToast("error", "Connection Error", "Could not fulfill request");
});
};