Skip to content

Commit

Permalink
Merge pull request #69 from tom0827/EPICSYSTEM-81
Browse files Browse the repository at this point in the history
[EPICSYSTEM-81] show save confirmation message on every save click
  • Loading branch information
tom0827 authored Jul 8, 2024
2 parents 82ee9d5 + cec9409 commit 027b911
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions met-web/src/components/engagement/form/ActionContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export const ActionProvider = ({ children }: { children: JSX.Element }) => {
}) as PatchEngagementRequest;

if (Object.keys(engagementEditsToPatch).length === 0) {
dispatch(openNotification({ severity: 'success', text: 'Engagement has been saved' }));
setSaving(false);
return savedEngagement;
}
Expand Down

0 comments on commit 027b911

Please sign in to comment.