Fix markdown toolbar button actions in MRs
What does this MR do and why?
On the new MRs page, GLForm is loaded twice, once in app/assets/javascripts/pages/projects/merge_requests/init_merge_request.js
and second in app/assets/javascripts/vue_shared/components/markdown/field.vue
. This caused all buttons on the toolbar to work twice.
Screenshots or screen recordings
Before | After |
---|---|
Screen_Recording_2023-04-04_at_18.46.24 | Screen_Recording_2023-04-04_at_18.45.56 |
How to set up and validate locally
- Create a new MR
- Insert a link or perform any other toolbar action.
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.
Related to #404293 (closed)
Edited by Himanshu Kapoor