Skip to content

Commit

Permalink
Rename existing bill-runs template to review.njk
Browse files Browse the repository at this point in the history
https://eaflood.atlassian.net/browse/WATER-4205

In [Linking 2PT SROC review page](#504) we added a stand-in view to confirm that if you click a bill run in `REVIEW` in the bill runs page of the internal UI you will get to a page we intend to build out and supporting reviewing the match & allocate results.

What we should have spotted is that the template was named `view.njk` not `review.njk`. We need `view.njk` as that would be the default template name for viewing a bill run. So, this quick change renames the template to `review.njk` to match the controller name and endpoint.
  • Loading branch information
Cruikshanks committed Nov 22, 2023
1 parent 00e383f commit dff98ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/bill-runs.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ async function create (request, h) {
}
}

async function review (request, h) {
return h.view('bill-runs/view.njk', {
async function review (_request, h) {
return h.view('bill-runs/review.njk', {
pageTitle: 'Review Two Part Tariff SROC',
activeNavBar: 'bill-runs'
})
Expand Down
File renamed without changes.

0 comments on commit dff98ce

Please sign in to comment.