Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { INFO_SAVED_SUCCESSFULLY, INFO_DELETE_SUCCESSFULLY } from '../../../../../shared/messages';
import { INFO_SAVED_SUCCESSFULLY, PROJECT_DEACTIVATED_SUCCESSFULLY } from '../../../../../shared/messages';
import { Injectable } from '@angular/core';
import { of, Observable } from 'rxjs';
import { catchError, map, mergeMap } from 'rxjs/operators';
Expand Down Expand Up @@ -108,7 +108,7 @@ export class ProjectEffects {
mergeMap((projectId) =>
this.projectService.deleteProject(projectId).pipe(
map(() => {
this.toastrService.success(INFO_DELETE_SUCCESSFULLY);
this.toastrService.success(PROJECT_DEACTIVATED_SUCCESSFULLY);
return new actions.DeleteProjectSuccess(projectId);
}),
catchError((error) => {
Expand Down
1 change: 1 addition & 0 deletions src/app/modules/shared/messages.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const INFO_SAVED_SUCCESSFULLY = 'The data has been saved successfully';
export const INFO_DELETE_SUCCESSFULLY = 'The data has been deleted successfully';
export const UNEXPECTED_ERROR = 'An unexpected error happened, please try again later';
export const PROJECT_DEACTIVATED_SUCCESSFULLY = 'The project has been inactivated successfully';