-
Notifications
You must be signed in to change notification settings - Fork 1
#67 delete activities #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/app/modules/activities-management/store/activity-management.actions.ts
Outdated
Show resolved
Hide resolved
src/app/modules/activities-management/store/activity-management.effects.ts
Outdated
Show resolved
Hide resolved
case ActivityManagementActionTypes.DELETE_ACTIVITY: { | ||
return { | ||
...state, | ||
message: 'Activity removed successfully!', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to set the loading variable to true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daros10 you don't need to add "message: 'Activity removed successfully!'," that is only in DELETE_ACTIVITY_SUCCESS
src/app/modules/activities-management/store/activity-management.actions.ts
Outdated
Show resolved
Hide resolved
case ActivityManagementActionTypes.DELETE_ACTIVITY: { | ||
return { | ||
...state, | ||
message: 'Activity removed successfully!', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daros10 you don't need to add "message: 'Activity removed successfully!'," that is only in DELETE_ACTIVITY_SUCCESS
return { | ||
data: [], | ||
isLoading: false, | ||
message: 'Something went wrong creating activities!', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the message is wrong "Something went wrong creating activities!" change for deleting
f4dbdc4
to
2d40594
Compare
No description provided.