Skip to content

Commit

Permalink
Improve affiliations success message (#2021)
Browse files Browse the repository at this point in the history
  • Loading branch information
joanagmaia authored Jan 8, 2024
1 parent fc79c4b commit e183425
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ const save = () => {
}),
),
},
messageOptions: {
title: 'Contact\'s organizations were updated successfully',
message: 'Activities will soon be affiliated to organizations in the background.',
},
});
};
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/shared/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default (moduleName, moduleService = null) => {
},

async doUpdate({ commit }, {
id, values, successMessage, errorMessage,
id, values, successMessage, errorMessage, messageOptions,
}) {
try {
commit('UPDATE_STARTED');
Expand All @@ -166,6 +166,7 @@ export default (moduleName, moduleService = null) => {
commit('UPDATE_SUCCESS', response);
Message.success(
successMessage || i18n(`entities.${moduleName}.update.success`),
messageOptions,
);

return response;
Expand Down

0 comments on commit e183425

Please sign in to comment.