Skip to content

Fix markdown toolbar button actions in MRs

Himanshu Kapoor requested to merge 404293-glform-fix-2 into master

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

  1. Create a new MR
  2. 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.

Related to #404293 (closed)

Edited by Himanshu Kapoor

Merge request reports