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
2073446f
Commit
2073446f
authored
Sep 07, 2020
by
kkoji
Committed by
Mark Florian
Sep 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html to v-safe-html directive
parent
417e8baf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
app/assets/javascripts/pages/milestones/shared/components/delete_milestone_modal.vue
...s/milestones/shared/components/delete_milestone_modal.vue
+5
-2
changelogs/unreleased/feature-issue_241962.yml
changelogs/unreleased/feature-issue_241962.yml
+5
-0
No files found.
app/assets/javascripts/pages/milestones/shared/components/delete_milestone_modal.vue
View file @
2073446f
<
script
>
/* eslint-disable vue/no-v-html */
import
{
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
deprecatedCreateFlash
as
Flash
}
from
'
~/flash
'
;
...
...
@@ -12,6 +12,9 @@ export default {
components
:
{
DeprecatedModal
,
},
directives
:
{
SafeHtml
,
},
props
:
{
issueCount
:
{
type
:
Number
,
...
...
@@ -125,7 +128,7 @@ Once deleted, it cannot be undone or recovered.`),
@
submit=
"onSubmit"
>
<template
#body
="
props
"
>
<p
v-html=
"props.text"
></p>
<p
v-
safe-
html=
"props.text"
></p>
</
template
>
</deprecated-modal>
</template>
changelogs/unreleased/feature-issue_241962.yml
0 → 100644
View file @
2073446f
---
title
:
Replace v-html to v-safe-html directive
merge_request
:
41305
author
:
Kazuya Kojima
type
:
other
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