Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when application is not a draft, show view all applications link #4249

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading