Skip to content

Commit

Permalink
Fix #968
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Nov 2, 2023
1 parent db500b2 commit d367c17
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});
}
Expand Down

0 comments on commit d367c17

Please sign in to comment.