Skip to content

Commit 4755dae

Browse files
Merge pull request #5817 from nhsuk/alistair/national-reporting-edit-vaccinator-and-dose-sequence-fix
Hide "Change" vaccinator and dose sequence buttons for PoC users
2 parents 3acad6e + e2e5441 commit 4755dae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/views/draft_vaccination_records/confirm.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
batch: wizard_path("batch"),
1919
delivery_method: wizard_path("delivery"),
2020
delivery_site: wizard_path("delivery"),
21-
dose_sequence: wizard_path("dose-sequence"),
21+
dose_sequence: @draft_vaccination_record.wizard_steps.include?(:dose_sequence) ? wizard_path("dose-sequence") : nil,
2222
dose_volume: @draft_vaccination_record.wizard_steps.include?(:dose) ? wizard_path("dose") : nil,
2323
identity: wizard_path("identity"),
2424
supplier: wizard_path("supplier"),
2525
location: @draft_vaccination_record.wizard_steps.include?(:location) ? wizard_path("location") : nil,
2626
notes: wizard_path("notes"),
2727
outcome: @draft_vaccination_record.wizard_steps.include?(:outcome) ? wizard_path("outcome") : nil,
2828
performed_at: wizard_path("date-and-time"),
29-
vaccinator: wizard_path("vaccinator"),
29+
vaccinator: @draft_vaccination_record.wizard_steps.include?(:vaccinator) ? wizard_path("vaccinator") : nil,
3030
} %>
3131

3232
<% show_notes = @draft_vaccination_record.editing? %>

0 commit comments

Comments
 (0)