File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
customer-management/components/projects/components/store Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1- import { INFO_SAVED_SUCCESSFULLY , INFO_DELETE_SUCCESSFULLY } from '../../../../../shared/messages' ;
1+ import { INFO_SAVED_SUCCESSFULLY , PROJECT_DEACTIVATED_SUCCESSFULLY } from '../../../../../shared/messages' ;
22import { Injectable } from '@angular/core' ;
33import { of , Observable } from 'rxjs' ;
44import { catchError , map , mergeMap } from 'rxjs/operators' ;
@@ -108,7 +108,7 @@ export class ProjectEffects {
108108 mergeMap ( ( projectId ) =>
109109 this . projectService . deleteProject ( projectId ) . pipe (
110110 map ( ( ) => {
111- this . toastrService . success ( INFO_DELETE_SUCCESSFULLY ) ;
111+ this . toastrService . success ( PROJECT_DEACTIVATED_SUCCESSFULLY ) ;
112112 return new actions . DeleteProjectSuccess ( projectId ) ;
113113 } ) ,
114114 catchError ( ( error ) => {
Original file line number Diff line number Diff line change 11export const INFO_SAVED_SUCCESSFULLY = 'The data has been saved successfully' ;
22export const INFO_DELETE_SUCCESSFULLY = 'The data has been deleted successfully' ;
33export const UNEXPECTED_ERROR = 'An unexpected error happened, please try again later' ;
4+ export const PROJECT_DEACTIVATED_SUCCESSFULLY = 'The project has been inactivated successfully' ;
You can’t perform that action at this time.
0 commit comments