Skip to content

Commit

Permalink
Add notifications reminders link (#2667)
Browse files Browse the repository at this point in the history
https://eaflood.atlassian.net/browse/WATER-4900

This change updates the notifications reminders link to redirect to the system notification setup journey.

The journey key is set to 'reminders' to match the expected query string.
  • Loading branch information
jonathangoulding authored Feb 14, 2025
1 parent f96f4d4 commit 75a40ad
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/internal/modules/manage/lib/manage-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const manageTabSkeleton = () => ({
returnNotifications: [
createLink('Invitations', _returnNotificationsInvitations(), scope.bulkReturnNotifications),
createLink('Paper forms', '/returns-notifications/forms', scope.returns),
createLink('Reminders', '/returns-notifications/reminders', scope.bulkReturnNotifications),
createLink('Ad-hoc returns', '/system/notifications/setup?journey=ad-hoc', config.featureToggles.enableSystemNotifications && scope.returns)
createLink('Reminders', _returnNotificationsReminders(), scope.bulkReturnNotifications),
createLink('Ad-hoc', '/system/notifications/setup?journey=ad-hoc', config.featureToggles.enableSystemNotifications && scope.returns)
],
licenceNotifications: [
createLink('Renewal', 'notifications/2?start=1', scope.renewalNotifications)
Expand Down Expand Up @@ -75,4 +75,12 @@ const _returnNotificationsInvitations = () => {
}
}

const _returnNotificationsReminders = () => {
if (config.featureToggles.enableSystemNotifications) {
return '/system/notifications/setup?journey=reminders'
} else {
return '/returns-notifications/reminders'
}
}

exports.getManageTabConfig = getManageTabConfig

0 comments on commit 75a40ad

Please sign in to comment.