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
Show 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
>
/* eslint-disable vue/no-v-html */
/*
* This is tightly coupled to projects/issues/_issue.html.haml,
* any changes done to the haml need to be reflected here.
...
...
@@ -7,7 +6,14 @@
// TODO: need to move this component to graphql - https://gitlab.com/gitlab-org/gitlab/-/issues/221246
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
{
dateInWords
,
...
...
@@ -42,6 +48,7 @@ export default {
},
directives
:
{
GlTooltip
,
SafeHtml
,
},
mixins
:
[
glFeatureFlagsMixin
()],
props
:
{
...
...
@@ -299,9 +306,9 @@ export default {
<span
class=
"js-ref-path gl-mr-4 mr-sm-0"
>
<span
v-if=
"isJiraIssue"
v-safe-html=
"jiraLogo"
class=
"svg-container jira-logo-container"
data-testid=
"jira-logo"
v-html=
"jiraLogo"
></span>
{{
referencePath
}}
</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