Skip to content

Commit d71cd4f

Browse files
authored
fix: TTL-727-bug-fix-error-400-on-project-update-function (#960)
* refactor: TTL-727-bug-as-a-software-developer-i-want-to-fix-error-400-on-project-creation * refactor: inactivated project message Co-authored-by: Nicole Garcia <nicolsss>
1 parent db3b232 commit d71cd4f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/modules/customer-management/components/projects/components/store/project.effects.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { INFO_SAVED_SUCCESSFULLY, INFO_DELETE_SUCCESSFULLY } from '../../../../../shared/messages';
1+
import { INFO_SAVED_SUCCESSFULLY, PROJECT_DEACTIVATED_SUCCESSFULLY } from '../../../../../shared/messages';
22
import { Injectable } from '@angular/core';
33
import { of, Observable } from 'rxjs';
44
import { 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) => {

src/app/modules/shared/messages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export const INFO_SAVED_SUCCESSFULLY = 'The data has been saved successfully';
22
export const INFO_DELETE_SUCCESSFULLY = 'The data has been deleted successfully';
33
export const UNEXPECTED_ERROR = 'An unexpected error happened, please try again later';
4+
export const PROJECT_DEACTIVATED_SUCCESSFULLY = 'The project has been inactivated successfully';

0 commit comments

Comments
 (0)