Replace v-html with gl-sprintf component in locked_warning.vue (#241850)
What does this MR do and why?
Replaces v-html
in app/assets/javascripts/issue_show/components/locked_warning.vue
with gl-sprintf
component which does exactly the same thing that sprintf
helper function does, but in a component-friendly way.
Closes #241850 (closed).
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Open an issue you can edit in the first tab and hit 'Edit' button
- Open the same page in the second tab and also hit 'Edit' button
- Save the issue in the second tab
The warning message should appear in the first tab with the clickable link to the issue you're viewing
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 Stanislav Lashmanov