mirror of
https://github.com/plankanban/planka.git
synced 2025-08-10 16:05:35 +02:00
feat(create-one.js): add case for MOVE_CARD action type in sendEmailNotification function to support email notifications when a card is moved
This commit is contained in:
parent
5704bce542
commit
80499e68d5
1 changed files with 10 additions and 0 deletions
|
@ -46,6 +46,16 @@ async function sendEmailNotification({ notification, action }) {
|
|||
`<p>${action.data.text}</p>`,
|
||||
};
|
||||
break;
|
||||
case Action.Types.MOVE_CARD:
|
||||
email = {
|
||||
subject: `${actionUser.name} moved the card ${actionCard.name} from ${action.data.fromList.name} to ${action.data.toList.name} on ${actionBoard.name}`,
|
||||
html:
|
||||
`<p>${actionUser.name} moved the card ` +
|
||||
`<a href="${process.env.BASE_URL}/cards/${actionCard.id}">${actionCard.name}</a> ` +
|
||||
`from ${action.data.fromList.name} to ${action.data.toList.name} ` +
|
||||
`on <a href="${process.env.BASE_URL}/boards/${actionBoard.id}">${actionBoard.name}</a></p>`,
|
||||
};
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue