Skip to content

Commit

Permalink
ATO-899: Updates base view and route
Browse files Browse the repository at this point in the history
Updates route from /public-beta to /go-live and updates the base
client view file to reflect the other changes
  • Loading branch information
Ryan-Andrews99 committed Aug 15, 2024
1 parent ac83cc0 commit 08a384b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions express/src/routes/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
processConfirmContactRemovalForm,
processEnterContactEmailForm,
processEnterClientSecretHashForm,
processPublicBetaForm,
showChangeBackChannelLogoutUriForm,
showChangePostLogoutUrisForm,
showChangePublicKeyForm,
Expand All @@ -22,10 +21,9 @@ import {
showEnterClientSecretHashForm,
showEnterContactEmailForm,
showEnterContactForm,
showPublicBetaForm,
showGoLivePage,
showChangeClaimsForm,
processChangeClaimsForm,
showPublicBetaFormSubmitted,
processAddPostLogoutUriForm,
showConfirmPostLogoutUriRemovalForm,
processRemovePostLogoutUriFrom,
Expand All @@ -50,9 +48,7 @@ export default router;
router.get("/", showClient);

// TODO This shouldn't use the clientId - public beta is per service
router.route("/:clientId/:selfServiceClientId/public-beta").get(showPublicBetaForm).post(processPublicBetaForm);

router.route("/:clientId/:selfServiceClientId/public-beta/submitted").get(showPublicBetaFormSubmitted);
router.route("/:clientId/:selfServiceClientId/go-live").get(showGoLivePage);

// TODO This shouldn't use the clientId - we're changing the service name
router.route("/:clientId/:selfServiceClientId/change-service-name").get(showChangeServiceNameForm).post(processChangeServiceNameForm);
Expand Down
6 changes: 3 additions & 3 deletions express/src/views/layouts/client.njk
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
<li class="side-navigation__item{% if sidebarActiveItem == 'client-details' %} side-navigation__item--active{% endif %}">
<a class="govuk-link govuk-link--no-visited-state" href="/services/{{ serviceId }}/clients">Manage {{ serviceName }}</a>
</li>
<li class="side-navigation__item{% if sidebarActiveItem == 'public-beta' %} side-navigation__item--active{% endif %}">
<a class="govuk-link govuk-link--no-visited-state" href="/services/{{ serviceId }}/clients/{{ clientId }}/{{ selfServiceClientId }}/public-beta">
Register to join public beta
<li class="side-navigation__item{% if sidebarActiveItem == 'Go live with GOV.UK One Login' %} side-navigation__item--active{% endif %}">
<a class="govuk-link govuk-link--no-visited-state" href="/services/{{ serviceId }}/clients/{{ clientId }}/{{ selfServiceClientId }}/go-live">
Go live with GOV.UK One Login
</a>
</li>
</ul>
Expand Down

0 comments on commit 08a384b

Please sign in to comment.