Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
53983131
Commit
53983131
authored
Nov 30, 2021
by
Dheeraj Joshi
Committed by
Phil Hughes
Nov 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove v-html from MR widget links component
parent
439b2200
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_related_links.vue
...rge_request_widget/components/mr_widget_related_links.vue
+6
-2
No files found.
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_related_links.vue
View file @
53983131
<
script
>
<
script
>
import
{
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
{
s__
,
n__
}
from
'
~/locale
'
;
import
{
s__
,
n__
}
from
'
~/locale
'
;
import
glFeatureFlagMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
import
glFeatureFlagMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
export
default
{
export
default
{
name
:
'
MRWidgetRelatedLinks
'
,
name
:
'
MRWidgetRelatedLinks
'
,
directives
:
{
SafeHtml
,
},
mixins
:
[
glFeatureFlagMixin
()],
mixins
:
[
glFeatureFlagMixin
()],
props
:
{
props
:
{
relatedLinks
:
{
relatedLinks
:
{
...
@@ -43,14 +47,14 @@ export default {
...
@@ -43,14 +47,14 @@ export default {
:class=
"
{ 'gl-display-line gl-m-0': glFeatures.restructuredMrWidget }"
:class=
"
{ 'gl-display-line gl-m-0': glFeatures.restructuredMrWidget }"
>
>
{{
closesText
}}
{{
closesText
}}
<span
v-
html=
"relatedLinks.closing /* eslint-disable-line vue/no-v-html */
"
></span>
<span
v-
safe-html=
"relatedLinks.closing
"
></span>
</p>
</p>
<p
<p
v-if=
"relatedLinks.mentioned"
v-if=
"relatedLinks.mentioned"
:class=
"
{ 'gl-display-line gl-m-0': glFeatures.restructuredMrWidget }"
:class=
"
{ 'gl-display-line gl-m-0': glFeatures.restructuredMrWidget }"
>
>
{{
n__
(
'
mrWidget|Mentions issue
'
,
'
mrWidget|Mentions issues
'
,
relatedLinks
.
mentionedCount
)
}}
{{
n__
(
'
mrWidget|Mentions issue
'
,
'
mrWidget|Mentions issues
'
,
relatedLinks
.
mentionedCount
)
}}
<span
v-
html=
"relatedLinks.mentioned /* eslint-disable-line vue/no-v-html */
"
></span>
<span
v-
safe-html=
"relatedLinks.mentioned
"
></span>
</p>
</p>
<p
<p
v-if=
"relatedLinks.assignToMe && showAssignToMe"
v-if=
"relatedLinks.assignToMe && showAssignToMe"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment