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
f6c6d94d
Commit
f6c6d94d
authored
Sep 03, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in description.vue
parent
4e0d6868
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
app/assets/javascripts/issue_show/components/description.vue
app/assets/javascripts/issue_show/components/description.vue
+6
-2
No files found.
app/assets/javascripts/issue_show/components/description.vue
View file @
f6c6d94d
<
script
>
<
script
>
/* eslint-disable vue/no-v-html */
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
{
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
{
s__
,
sprintf
}
from
'
~/locale
'
;
import
{
s__
,
sprintf
}
from
'
~/locale
'
;
import
{
deprecatedCreateFlash
as
createFlash
}
from
'
~/flash
'
;
import
{
deprecatedCreateFlash
as
createFlash
}
from
'
~/flash
'
;
import
animateMixin
from
'
../mixins/animate
'
;
import
animateMixin
from
'
../mixins/animate
'
;
...
@@ -8,6 +8,10 @@ import TaskList from '../../task_list';
...
@@ -8,6 +8,10 @@ import TaskList from '../../task_list';
import
recaptchaModalImplementor
from
'
../../vue_shared/mixins/recaptcha_modal_implementor
'
;
import
recaptchaModalImplementor
from
'
../../vue_shared/mixins/recaptcha_modal_implementor
'
;
export
default
{
export
default
{
directives
:
{
SafeHtml
,
},
mixins
:
[
animateMixin
,
recaptchaModalImplementor
],
mixins
:
[
animateMixin
,
recaptchaModalImplementor
],
props
:
{
props
:
{
...
@@ -142,12 +146,12 @@ export default {
...
@@ -142,12 +146,12 @@ export default {
>
>
<div
<div
ref=
"gfm-content"
ref=
"gfm-content"
v-safe-html=
"descriptionHtml"
:class=
"
{
:class=
"
{
'issue-realtime-pre-pulse': preAnimation,
'issue-realtime-pre-pulse': preAnimation,
'issue-realtime-trigger-pulse': pulseAnimation,
'issue-realtime-trigger-pulse': pulseAnimation,
}"
}"
class="md"
class="md"
v-html="descriptionHtml"
>
</div>
>
</div>
<textarea
<textarea
v-if=
"descriptionText"
v-if=
"descriptionText"
...
...
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