Fix "Leave admin mode" link
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
- Enable the new navigation.
- Enable admin mode for your instance.
- Enter admin mode.
- Verify that admin mode is enabled (can access
/admin
without password). - Leave admin mode.
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Adil Farrukh