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
0000166e
Commit
0000166e
authored
Sep 08, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to v-safe-html in ancestors_true.vue
parent
aa0a1d0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ee/app/assets/javascripts/sidebar/components/ancestors_tree/ancestors_tree.vue
...ipts/sidebar/components/ancestors_tree/ancestors_tree.vue
+5
-2
No files found.
ee/app/assets/javascripts/sidebar/components/ancestors_tree/ancestors_tree.vue
View file @
0000166e
<
script
>
import
{
GlLoadingIcon
,
GlLink
,
GlTooltip
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlLoadingIcon
,
GlLink
,
GlTooltip
,
GlIcon
,
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
{
escape
}
from
'
lodash
'
;
import
{
__
}
from
'
~/locale
'
;
...
...
@@ -12,6 +12,9 @@ export default {
GlLink
,
GlTooltip
,
},
directives
:
{
SafeHtml
:
GlSafeHtmlDirective
,
},
props
:
{
ancestors
:
{
type
:
Array
,
...
...
@@ -70,7 +73,7 @@ export default {
</div>
<gl-tooltip
:target=
"() => $refs.sidebarIcon"
placement=
"left"
boundary=
"viewport"
>
<span
v-
html=
"tooltipText /* eslint-disable-line vue/no-v-html */
"
></span>
<span
v-
safe-html=
"tooltipText
"
></span>
</gl-tooltip>
<div
class=
"title hide-collapsed gl-mb-2"
>
{{
__
(
'
Ancestors
'
)
}}
</div>
...
...
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