mgubaidullin commented on code in PR #992:
URL: https://github.com/apache/camel-karavan/pull/992#discussion_r1394619222


##########
karavan-web/karavan-app/src/main/java/org/apache/camel/karavan/service/ProjectService.java:
##########
@@ -187,34 +187,38 @@ public Project save(Project project) throws Exception {
     }
 
     public Project copy(String sourceProjectId, Project project) throws 
Exception {
+        boolean isNew = infinispanService.getProject(project.getProjectId()) 
== null;
         Project sourceProject = infinispanService.getProject(sourceProjectId);
+
         // Save project
         infinispanService.saveProject(project);

Review Comment:
   @mvolf  This one will rewrite existing project



##########
karavan-web/karavan-app/src/main/webui/src/api/ProjectService.ts:
##########
@@ -258,7 +258,6 @@ export class ProjectService {
     public static copyProject(sourceProject: string, project: Project) {
         KaravanApi.copyProject(sourceProject, project, res => {
             if (res.status === 200 || res.status === 201) {
-                EventBus.sendAlert( 'Success', 'Project copied', 'success');

Review Comment:
   @mvolf Why removed?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to