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
0f285e54
Commit
0f285e54
authored
Oct 13, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove v-html from frequent items list component
parent
2fac068e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
app/assets/javascripts/frequent_items/components/frequent_items_list_item.vue
...ts/frequent_items/components/frequent_items_list_item.vue
+5
-2
No files found.
app/assets/javascripts/frequent_items/components/frequent_items_list_item.vue
View file @
0f285e54
<
script
>
/* eslint-disable vue/require-default-prop */
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
{
GlButton
,
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
highlight
from
'
~/lib/utils/highlight
'
;
import
{
truncateNamespace
}
from
'
~/lib/utils/text_utility
'
;
import
{
mapVuexModuleState
}
from
'
~/lib/utils/vuex_module_mappers
'
;
...
...
@@ -14,6 +14,9 @@ export default {
GlButton
,
ProjectAvatar
,
},
directives
:
{
SafeHtml
:
GlSafeHtmlDirective
,
},
mixins
:
[
trackingMixin
],
inject
:
[
'
vuexModule
'
],
props
:
{
...
...
@@ -73,9 +76,9 @@ export default {
<div
ref=
"frequentItemsItemMetadataContainer"
class=
"frequent-items-item-metadata-container"
>
<div
ref=
"frequentItemsItemTitle"
v-safe-html=
"highlightedItemName"
:title=
"itemName"
class=
"frequent-items-item-title"
v-html=
"highlightedItemName /* eslint-disable-line vue/no-v-html */"
></div>
<div
v-if=
"namespace"
...
...
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