Skip to content

Commit 20329ad

Browse files
committed
Don't show "Nasal spray (or injection)"
This label should no longer be shown as we now have a separate row shown whether the parents also consented to the injection. Jira-Issue: MAV-1565
1 parent c6c6103 commit 20329ad

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

app/components/app_programme_status_tags_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def programme_status_tag(programme, status, vaccine_methods)
3838
vaccine_methods_span =
3939
if vaccine_methods.present?
4040
tag.span(
41-
Vaccine.human_enum_name(:method, vaccine_methods.join("_")),
41+
Vaccine.human_enum_name(:method, vaccine_methods.first),
4242
class: "nhsuk-u-secondary-text-color"
4343
)
4444
end

config/locales/en.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ en:
209209
do_not_vaccinate: Do not vaccinate in programme
210210
needs_follow_up: Keep in triage
211211
ready_to_vaccinate: Safe to vaccinate
212-
ready_to_vaccinate_injection: Safe to vaccinate with injection
212+
ready_to_vaccinate_injection: Safe to vaccinate with injection
213213
ready_to_vaccinate_nasal: Safe to vaccinate with nasal spray
214214
vaccine_methods:
215215
injection: injection
@@ -237,7 +237,6 @@ en:
237237
methods:
238238
injection: Injection
239239
nasal: Nasal spray
240-
nasal_injection: Nasal spray (or injection)
241240
method_prefixes:
242241
injection: injected
243242
nasal: nasal spray

spec/components/app_programme_status_tags_component_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626

2727
it { should have_content("MenACWYConsent given") }
2828
it { should have_content("Td/IPVConsent refused") }
29-
it { should have_content("FluConsent givenNasal spray (or injection)") }
29+
it { should have_content("FluConsent givenNasal spray") }
3030
end

0 commit comments

Comments
 (0)