create broadcast notification when a futur or ongoing date of a task is updated
This commit is contained in:
@@ -30,5 +30,9 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU
|
|||||||
})
|
})
|
||||||
.listen('.volunteer.role.updated', (event) => {
|
.listen('.volunteer.role.updated', (event) => {
|
||||||
handleNotification(`Votre rôle a changé pour : ${event.role} !`);
|
handleNotification(`Votre rôle a changé pour : ${event.role} !`);
|
||||||
|
})
|
||||||
|
.listen('.task.date.updated', (event) => {
|
||||||
|
handleNotification(`Votre rôle a changé pour : ${event.role} !`);
|
||||||
|
`La date de la tâche ${event.task.name} de l'événement ${event.task.event.name} à été mis à jour. Cette tâche aura maintenant lieu du ${event.start} au ${event.end}.`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user