PIMS
PIMS copied to clipboard
PIMS-1928: Cancel and resend notifications
🎯 Summary
- Adds new controllers and services for resending and cancelling notifications
- Adds new frontend hooks for resending and cancelling notifications
- Added buttons to the notification table on the project detail for resending or cancelling projects.
Note:
- The cancel button is greyed out for notifications that are already cancelled or completed, obviously cancelling them doesn't do anything.
- Resending a cancelled or completed notification does work, but the function to refresh notifications in getNotificationByProjectId is hardcoded to not update notifications in these statuses. Should we loosen that restriction?
🔰 Checklist
- [x] I have read and agree with the following checklist and am following the guidelines in our Code of Conduct document.
- I have performed a self-review of my code.
- I have commented my code, particularly in hard-to-understand areas.
- I have made corresponding changes to the documentation where required.
- I have tested my changes to the best of my ability.
- My changes generate no new warnings.