From e183425de5d830c67908b663970a8466d21dcf6c Mon Sep 17 00:00:00 2001 From: joanagmaia Date: Mon, 8 Jan 2024 15:01:15 +0000 Subject: [PATCH] Improve affiliations success message (#2021) --- .../components/form/member-form-organizations-drawer.vue | 4 ++++ frontend/src/shared/store/actions.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/modules/member/components/form/member-form-organizations-drawer.vue b/frontend/src/modules/member/components/form/member-form-organizations-drawer.vue index 30524ac81e..af73fbe5db 100644 --- a/frontend/src/modules/member/components/form/member-form-organizations-drawer.vue +++ b/frontend/src/modules/member/components/form/member-form-organizations-drawer.vue @@ -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.', + }, }); }; diff --git a/frontend/src/shared/store/actions.js b/frontend/src/shared/store/actions.js index f8dfd81222..ca6cbbe36e 100644 --- a/frontend/src/shared/store/actions.js +++ b/frontend/src/shared/store/actions.js @@ -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'); @@ -166,6 +166,7 @@ export default (moduleName, moduleService = null) => { commit('UPDATE_SUCCESS', response); Message.success( successMessage || i18n(`entities.${moduleName}.update.success`), + messageOptions, ); return response;