PIMS icon indicating copy to clipboard operation
PIMS copied to clipboard

PIMS-1928: Cancel and resend notifications

Open GrahamS-Quartech opened this issue 1 year ago • 2 comments

🎯 Summary

PIMS-1928

  • 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.

GrahamS-Quartech avatar Aug 09 '24 22:08 GrahamS-Quartech