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
a4feb259
Commit
a4feb259
authored
Oct 05, 2021
by
Lawrence Lin
Committed by
Peter Hegman
Oct 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace `v-html` with `v-safe-html` in `note_header.vue`
parent
606d9e6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
app/assets/javascripts/notes/components/note_header.vue
app/assets/javascripts/notes/components/note_header.vue
+9
-2
No files found.
app/assets/javascripts/notes/components/note_header.vue
View file @
a4feb259
<
script
>
import
{
GlIcon
,
GlLoadingIcon
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
{
GlIcon
,
GlLoadingIcon
,
GlTooltipDirective
,
GlSafeHtmlDirective
as
SafeHtml
,
}
from
'
@gitlab/ui
'
;
import
{
mapActions
}
from
'
vuex
'
;
import
timeAgoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
UserNameWithStatus
from
'
../../sidebar/components/assignees/user_name_with_status.vue
'
;
export
default
{
safeHtmlConfig
:
{
ADD_TAGS
:
[
'
gl-emoji
'
]
},
components
:
{
timeAgoTooltip
,
GitlabTeamMemberBadge
:
()
=>
...
...
@@ -14,6 +20,7 @@ export default {
UserNameWithStatus
,
},
directives
:
{
SafeHtml
,
GlTooltip
:
GlTooltipDirective
,
},
props
:
{
...
...
@@ -165,10 +172,10 @@ export default {
<span
v-if=
"authorStatus"
ref=
"authorStatus"
v-safe-html:
[$
options.safeHtmlConfig]=
"authorStatus"
v-on=
"
authorStatusHasTooltip ?
{ mouseenter: removeEmojiTitle, mouseleave: addEmojiTitle } : {}
"
v-html="authorStatus /* eslint-disable-line vue/no-v-html */"
>
</span>
<span
class=
"text-nowrap author-username"
>
<a
...
...
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