From 59817257b4326d9e43dde8118d81dd603d089263 Mon Sep 17 00:00:00 2001 From: Jake Rosenberg Date: Fri, 22 Nov 2024 14:39:06 -0600 Subject: [PATCH] show toast notification when changing project owner --- client/src/redux/sagas/projects.sagas.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/redux/sagas/projects.sagas.js b/client/src/redux/sagas/projects.sagas.js index 220dea631..6f348c1ba 100644 --- a/client/src/redux/sagas/projects.sagas.js +++ b/client/src/redux/sagas/projects.sagas.js @@ -144,6 +144,13 @@ export function* setMember(action) { type: 'PROJECTS_SET_MEMBER_SUCCESS', payload: metadata, }); + if (data.action === 'transfer_ownership') + yield put({ + type: 'ADD_TOAST', + payload: { + message: `Project ownership transferred to ${data.newOwner}.`, + }, + }); yield put({ type: 'PROJECTS_GET_LISTING', payload: {