diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index b3244bb88..73a6ced37 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -11,7 +11,7 @@ else { name: t(".nav.transactions"), path: transactions_path, icon: "credit-card", icon_custom: false, active: page_active?(transactions_path) }, { name: t(".nav.reports"), path: reports_path, icon: "chart-bar", icon_custom: false, active: page_active?(reports_path) }, { name: t(".nav.budgets"), path: budgets_path, icon: "map", icon_custom: false, active: page_active?(budgets_path) }, - (beta_features_enabled? ? { name: t(".nav.goals"), path: goals_path, icon: "piggy-bank", icon_custom: false, active: page_active?(goals_path) } : nil), + (beta_features_enabled? ? { name: t(".nav.goals"), path: goals_path, icon: "piggy-bank", icon_custom: false, active: page_active?(goals_path), beta: true } : nil), { name: t(".nav.assistant"), path: chats_path, icon: "icon-assistant", icon_custom: true, active: page_active?(chats_path), mobile_only: true } ].compact end %> diff --git a/app/views/layouts/shared/_nav_item.html.erb b/app/views/layouts/shared/_nav_item.html.erb index 3c700e184..5738e82c0 100644 --- a/app/views/layouts/shared/_nav_item.html.erb +++ b/app/views/layouts/shared/_nav_item.html.erb @@ -1,14 +1,19 @@ -<%# locals:(name:, path:, icon:, icon_custom:, active:, mobile_only: false) %> +<%# locals: (name:, path:, icon:, icon_custom:, active:, mobile_only: false, beta: false) %> <%= link_to path, class: "space-y-1 group block relative pb-1", aria: { current: ("page" if active) } do %>