Skip to content

Commit 6005841

Browse files
Always show ‘Send consent request’ button if child not vaccinated
1 parent b54e27f commit 6005841

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

app/controllers/patient-session.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ export const patientSessionController = {
8282
response.locals.options = {
8383
// Show outstanding vaccinations
8484
showOutstandingVaccinations: vaccinated.length > 0 && due.length > 1,
85-
// Invite to session
86-
canInvite: consent === ConsentOutcome.NotDelivered,
8785
// Send a reminder to give consent
8886
canRemind:
8987
!patient.hasNoContactDetails &&

app/views/patient-session/_consent.njk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
{% endif %}
1717

1818
{# Actions #}
19+
{{ actionLink({
20+
text: __("reply.new.title"),
21+
href: patientSession.uri + "/replies/new?referrer=" + referrer
22+
}) if not isVaccinated }}
23+
1924
{{ appButtonGroup({
2025
buttons: [{
2126
text: __("remind.new.title"),
@@ -31,12 +36,7 @@
3136
formaction: patientSession.uri + "/new/invite",
3237
formmethod: "post"
3338
}
34-
} if options.canInvite]
35-
}) if not isVaccinated }}
36-
37-
{{ actionLink({
38-
text: __("reply.new.title"),
39-
href: patientSession.uri + "/replies/new?referrer=" + referrer
39+
}]
4040
}) if not isVaccinated }}
4141

4242
{% if patientSession.replies | length %}

0 commit comments

Comments
 (0)