lib/decidim/admin/engine.rb in decidim-admin-0.21.0 vs lib/decidim/admin/engine.rb in decidim-admin-0.22.0
- old
+ new
@@ -59,10 +59,11 @@
menu.item I18n.t("menu.newsletters", scope: "decidim.admin"),
decidim_admin.newsletters_path,
icon_name: "envelope-closed",
position: 6,
- active: :inclusive,
+ active: is_active_link?(decidim_admin.newsletters_path, :inclusive) ||
+ is_active_link?(decidim_admin.newsletter_templates_path, :inclusive),
if: allowed_to?(:index, :newsletter)
menu.item I18n.t("menu.settings", scope: "decidim.admin"),
decidim_admin.edit_organization_path,
icon_name: "wrench",