Extract in-template arrow functions to a method
What does this MR do and why?
Resolves #418767 (closed) by extracting the two duplicate in-template arrow functions into a method. This ensures that the function is optimized by Vue's template compiler and doesn't have to be recreated on each render.
Screenshots or screen recordings
No visual or functional change.
How to set up and validate locally
- In the project/group sidebar of the New Navigation, pin a couple of nav items.
- Unpin these items:
- From within their section (like inside Plan, unpin Issues)
- From within the Pinned section while its expanded (click the "Pinned" title)
- From within the Pinned flyout menu (only hover the "Pinned" section. Make sure the
super_sidebar_flyout_menus
feature flag is enabled locally first)
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 Thomas Hutterer