Skip to content

Commit

Permalink
show toast notification when changing project owner (#1016)
Browse files Browse the repository at this point in the history
Co-authored-by: Shayan Khan <[email protected]>
  • Loading branch information
jarosenb and shayanaijaz authored Dec 10, 2024
1 parent c3dfa00 commit 7787b4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/src/redux/sagas/projects.sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 7787b4a

Please sign in to comment.