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
c2d574bc
Commit
c2d574bc
authored
Jun 22, 2021
by
Jeremy Wu
Committed by
Kushal Pandya
Jun 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: issue 332841 remove v-html from searchable_dropdown.vue
parent
449671f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
app/assets/javascripts/search/topbar/components/searchable_dropdown_item.vue
...pts/search/topbar/components/searchable_dropdown_item.vue
+5
-3
No files found.
app/assets/javascripts/search/topbar/components/searchable_dropdown_item.vue
View file @
c2d574bc
<
script
>
import
{
GlDropdownItem
,
GlAvatar
}
from
'
@gitlab/ui
'
;
import
{
GlDropdownItem
,
GlAvatar
,
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
highlight
from
'
~/lib/utils/highlight
'
;
import
{
truncateNamespace
}
from
'
~/lib/utils/text_utility
'
;
...
...
@@ -9,6 +9,9 @@ export default {
GlDropdownItem
,
GlAvatar
,
},
directives
:
{
SafeHtml
,
},
props
:
{
item
:
{
type
:
Object
,
...
...
@@ -62,8 +65,7 @@ export default {
:size=
"32"
/>
<div
class=
"gl-display-flex gl-flex-direction-column"
>
<!-- eslint-disable-next-line vue/no-v-html -->
<span
data-testid=
"item-title"
v-html=
"highlightedItemName"
>
{{
item
[
name
]
}}
</span>
<span
v-safe-html=
"highlightedItemName"
data-testid=
"item-title"
></span>
<span
class=
"gl-font-sm gl-text-gray-700"
data-testid=
"item-namespace"
>
{{
truncatedNamespace
}}
</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