Skip to content

Commit

Permalink
when application is not a draft, show view all applications link (#4249)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinmerbach authored and bbodine1 committed Aug 10, 2024
1 parent 1a79a9c commit 0c693bc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ def faa_nav_options(step, application, applicant)
nav[:nav_options] = applicant.present? ? applicant_faa_nav_options(application, applicant) : no_applicant_faa_nav_options(application)
nav[:links] = true
nav[:step] = step

nav[:title] = (applicant.present? || step != 1) ? l10n("faa.left_nav.my_household") : l10n("faa.results.view_my_applications")
nav[:title_link] = (applicant.present? || step != 1) ? edit_application_path(application) : financial_assistance.applications_path
view_applications = (applicant.present? || step != 1) && application.is_draft?
nav[:title] = view_applications ? l10n("faa.left_nav.my_household") : l10n("faa.results.view_my_applications").titleize
nav[:title_link] = view_applications ? edit_application_path(application) : financial_assistance.applications_path
nav[:subheading] = l10n("faa.nav.applicant_subheader")

nav[:show_help_button] = true
Expand Down

0 comments on commit 0c693bc

Please sign in to comment.