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

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new d367c173 Fix #968
d367c173 is described below

commit d367c173771225309b3a132c8908fcf8608ff79f
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Thu Nov 2 14:08:04 2023 -0400

    Fix #968
---
 karavan-web/karavan-app/src/main/webui/src/api/ProjectService.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/karavan-web/karavan-app/src/main/webui/src/api/ProjectService.ts 
b/karavan-web/karavan-app/src/main/webui/src/api/ProjectService.ts
index 5e074888..da4cef52 100644
--- a/karavan-web/karavan-app/src/main/webui/src/api/ProjectService.ts
+++ b/karavan-web/karavan-app/src/main/webui/src/api/ProjectService.ts
@@ -197,10 +197,10 @@ export class ProjectService {
     public static deleteProject(project: Project) {
         KaravanApi.deleteProject(project, res => {
             if (res.status === 204) {
-                // this.props.toast?.call(this, 'Success', 'Project deleted', 
'success');
-                ProjectService.refreshProjectData(project.projectId);
+                EventBus.sendAlert( 'Success', 'Project deleted', 'success');
+                ProjectService.refreshProjects();
             } else {
-                // this.props.toast?.call(this, 'Error', res.statusText, 
'danger');
+                EventBus.sendAlert( 'Warning', 'Error when deleting project:' 
+ res.statusText, 'warning');
             }
         });
     }

Reply via email to