From 0c693bc62240b729ca554960da857be0c583c2d8 Mon Sep 17 00:00:00 2001 From: kristinmerbach <78749008+kristinmerbach@users.noreply.github.com> Date: Fri, 9 Aug 2024 10:08:01 -0700 Subject: [PATCH] when application is not a draft, show view all applications link (#4249) --- .../app/helpers/financial_assistance/application_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/financial_assistance/app/helpers/financial_assistance/application_helper.rb b/components/financial_assistance/app/helpers/financial_assistance/application_helper.rb index 31cff1ee8de..f3d34f04a71 100644 --- a/components/financial_assistance/app/helpers/financial_assistance/application_helper.rb +++ b/components/financial_assistance/app/helpers/financial_assistance/application_helper.rb @@ -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