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
4dfb5d43
Commit
4dfb5d43
authored
Sep 03, 2020
by
Kev
Committed by
Kushal Pandya
Sep 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in delete_project_modal.vue
parent
e2e3b618
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
app/assets/javascripts/pages/admin/projects/index/components/delete_project_modal.vue
.../admin/projects/index/components/delete_project_modal.vue
+6
-3
changelogs/unreleased/241897-Replace-v-html.yml
changelogs/unreleased/241897-Replace-v-html.yml
+5
-0
No files found.
app/assets/javascripts/pages/admin/projects/index/components/delete_project_modal.vue
View file @
4dfb5d43
<
script
>
/* eslint-disable vue/no-v-html */
import
{
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
{
escape
}
from
'
lodash
'
;
import
DeprecatedModal
from
'
~/vue_shared/components/deprecated_modal.vue
'
;
import
{
s__
,
sprintf
}
from
'
~/locale
'
;
...
...
@@ -8,6 +8,9 @@ export default {
components
:
{
DeprecatedModal
,
},
directives
:
{
SafeHtml
,
},
props
:
{
deleteProjectUrl
:
{
type
:
String
,
...
...
@@ -94,8 +97,8 @@ export default {
@
cancel=
"onCancel"
>
<template
#body
="
props
"
>
<p
v-html=
"props.text"
></p>
<p
v-html=
"confirmationTextLabel"
></p>
<p
v-
safe-
html=
"props.text"
></p>
<p
v-
safe-
html=
"confirmationTextLabel"
></p>
<form
ref=
"form"
:action=
"deleteProjectUrl"
method=
"post"
>
<input
ref=
"method"
type=
"hidden"
name=
"_method"
value=
"delete"
/>
<input
:value=
"csrfToken"
type=
"hidden"
name=
"authenticity_token"
/>
...
...
changelogs/unreleased/241897-Replace-v-html.yml
0 → 100644
View file @
4dfb5d43
---
title
:
Replace v-html with v-safe-html in delete_project_modal.vue
merge_request
:
41130
author
:
Kev @KevSlashNull
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