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
13e38a59
Commit
13e38a59
authored
Oct 22, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to v-safe-html for alerts notes
parent
0c4e0b2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
app/assets/javascripts/vue_shared/alert_details/components/system_notes/system_note.vue
...red/alert_details/components/system_notes/system_note.vue
+5
-2
No files found.
app/assets/javascripts/vue_shared/alert_details/components/system_notes/system_note.vue
View file @
13e38a59
<
script
>
import
{
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlIcon
,
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
NoteHeader
from
'
~/notes/components/note_header.vue
'
;
export
default
{
...
...
@@ -7,6 +7,9 @@ export default {
NoteHeader
,
GlIcon
,
},
directives
:
{
SafeHtml
:
GlSafeHtmlDirective
,
},
props
:
{
note
:
{
type
:
Object
,
...
...
@@ -39,7 +42,7 @@ export default {
<div
class=
"note-header"
>
<note-header
:author=
"noteAuthor"
:created-at=
"note.createdAt"
:note-id=
"note.id"
>
<span
v-
html=
"note.bodyHtml /* eslint-disable-line vue/no-v-html */
"
></span>
<span
v-
safe-html=
"note.bodyHtml
"
></span>
</note-header>
</div>
</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