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
ebfde22e
Commit
ebfde22e
authored
Sep 02, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in issuable.vue
parent
4e0d6868
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
app/assets/javascripts/issuables_list/components/issuable.vue
...assets/javascripts/issuables_list/components/issuable.vue
+10
-3
No files found.
app/assets/javascripts/issuables_list/components/issuable.vue
View file @
ebfde22e
<
script
>
<
script
>
/* eslint-disable vue/no-v-html */
/*
/*
* This is tightly coupled to projects/issues/_issue.html.haml,
* This is tightly coupled to projects/issues/_issue.html.haml,
* any changes done to the haml need to be reflected here.
* any changes done to the haml need to be reflected here.
...
@@ -7,7 +6,14 @@
...
@@ -7,7 +6,14 @@
// TODO: need to move this component to graphql - https://gitlab.com/gitlab-org/gitlab/-/issues/221246
// TODO: need to move this component to graphql - https://gitlab.com/gitlab-org/gitlab/-/issues/221246
import
{
escape
,
isNumber
}
from
'
lodash
'
;
import
{
escape
,
isNumber
}
from
'
lodash
'
;
import
{
GlLink
,
GlTooltipDirective
as
GlTooltip
,
GlSprintf
,
GlLabel
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlLink
,
GlTooltipDirective
as
GlTooltip
,
GlSprintf
,
GlLabel
,
GlIcon
,
GlSafeHtmlDirective
as
SafeHtml
,
}
from
'
@gitlab/ui
'
;
import
jiraLogo
from
'
@gitlab/svgs/dist/illustrations/logos/jira.svg
'
;
import
jiraLogo
from
'
@gitlab/svgs/dist/illustrations/logos/jira.svg
'
;
import
{
import
{
dateInWords
,
dateInWords
,
...
@@ -42,6 +48,7 @@ export default {
...
@@ -42,6 +48,7 @@ export default {
},
},
directives
:
{
directives
:
{
GlTooltip
,
GlTooltip
,
SafeHtml
,
},
},
mixins
:
[
glFeatureFlagsMixin
()],
mixins
:
[
glFeatureFlagsMixin
()],
props
:
{
props
:
{
...
@@ -299,9 +306,9 @@ export default {
...
@@ -299,9 +306,9 @@ export default {
<span
class=
"js-ref-path gl-mr-4 mr-sm-0"
>
<span
class=
"js-ref-path gl-mr-4 mr-sm-0"
>
<span
<span
v-if=
"isJiraIssue"
v-if=
"isJiraIssue"
v-safe-html=
"jiraLogo"
class=
"svg-container jira-logo-container"
class=
"svg-container jira-logo-container"
data-testid=
"jira-logo"
data-testid=
"jira-logo"
v-html=
"jiraLogo"
></span>
></span>
{{
referencePath
}}
{{
referencePath
}}
</span>
</span>
...
...
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