Skip to content

Commit

Permalink
Merge pull request #18410 from guardian/v2-consent-journey-narrow
Browse files Browse the repository at this point in the history
[bugfix] isNarrow on consent journey was set the other way around
  • Loading branch information
Lau Skeeter authored Dec 6, 2017
2 parents dfadd9d + 9eb4b62 commit 72e25be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions identity/app/views/consentJourney.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ <h1 class="identity-title">
@fragments.form.hidden(emailPrefsForm("htmlPreference"))

@if(isNarrow) {
<h2 class="identity-title">Email Preferences</h2>
<h2 class="identity-title">Sorry for the interruption</h2>
<p class="manage-account-headerNote">
You were receiving these newsletters, check them again to confirm you want to keep receiving them.
Do you still want to receive the following newsletters? Please check them again if you do.
</p>
} else {
<h2 class="identity-title">Sorry for the interruption</h2>
<h2 class="identity-title">Email Preferences</h2>
<p class="manage-account-headerNote">
Do you still want to receive the following newsletters? Please check them again if you do.
You were receiving these newsletters, check them again to confirm you want to keep receiving them.
</p>
}
<div class="manage-account__switches">
Expand Down Expand Up @@ -148,11 +148,11 @@ <h2 class="manage-account-consent-thanks__title">Thank you</h2>

@journey match {
case "repermission-narrow" => {
@emailStep()
@emailStep(isNarrow = true)
}
case "repermission" => {
@consentStep(journey = "repermission")
@emailStep(isNarrow = true)
@emailStep()
}
case "signup" => {
@consentStep(journey = "signup")
Expand Down

0 comments on commit 72e25be

Please sign in to comment.