Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated stakeholder page #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/routes/stakeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const stakeholderRouter = (req, res) => {
types.map(type => jsonApi.define(type, models[type]));

await Promise.all(
types.map(type => jsonApi.findAll('people', { filter: { id } }))
types.map(type => jsonApi.find('people', id))
).then(function(responses) {
types.forEach((type, index) => {
params[type] = responses[index].data;
Expand Down
6 changes: 3 additions & 3 deletions app/views/stakeholder.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="govuk-grid-column-full">
<h1 class="govuk-heading-l">
<span class="govuk-caption-l">Stakeholder</span>
{{ stakeholder.name.fullName }}
{{ people.name }}
</h1>
</div>
</div>
Expand All @@ -31,13 +31,13 @@
</dl>
</div>
<div class="govuk-grid-column-one-quarter">
<a href="/stakeholder/{{ stakeholder }}/engagement/new" role="button" draggable="false" class="govuk-button">
<a href="/stakeholder/{{ id }}/engagement/new" role="button" draggable="false" class="govuk-button">
Record engagement
</a>
</div>
</div>
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<div class="govuk-grid-column-full">
<table class="govuk-table">
<caption class="govuk-table__caption govuk-heading-m">Engagement history</caption>
<thead class="govuk-table__head">
Expand Down