Skip to content

Fix "Leave admin mode" link

Mark Florian requested to merge fix-admin-mode-links-in-new-nav into master

What does this MR do and why?

Fix "Leave admin mode" link

Ensure @rails/ujs data attributes are added to context switcher links. This fixes the "Leave admin mode" link when the new navigation is enabled.

Changelog: fixed Relates to: #426041 (closed)

Screenshots or screen recordings

Before After
simplescreenrecorder-2023-10-23_11.26.24 simplescreenrecorder-2023-10-23_11.25.25

How to set up and validate locally

  1. Enable the new navigation.
  2. Enable admin mode for your instance.
  3. Enter admin mode.
  4. Verify that admin mode is enabled (can access /admin without password).
  5. Leave admin mode.
  6. Verify that admin mode is disabled (need password to access /admin).

MR acceptance checklist

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

Edited by Adil Farrukh

Merge request reports