Skip to content

Show active CRM route in navbar

Lee Tickett requested to merge 361946-fix-nav-menu-active-item into master

What does this MR do and why?

@zillemarco identified that the navigation bar (left hand sidebar) does not indicate when you are on the group -> customer relations -> contacts / organizatinos screens #361946 (comment 952305758)

This MR fixes that.

Screenshots or screen recordings

image

image

How to set up and validate locally

https://docs.gitlab.com/ee/user/crm/

  1. Enable CRM in a root group e.g. http://gdk.test:3000/groups/flightjs/-/edit
  2. Visit the group -> customer relations -> contacts page e.g. http://gdk.test:3000/groups/flightjs/-/crm/contacts
  3. Ensure the relevant navigation menu item is active
  4. Visit the group -> customer relations -> orgnaizations page e.g. http://gdk.test:3000/groups/flightjs/-/crm/organizations
  5. Ensure the relevant navigation menu item is active

Bonus points for checking it works with the /new and /edit routes too 😉

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading