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
629f11be
Commit
629f11be
authored
Sep 02, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in list.vue
parent
b8910e6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
app/assets/javascripts/ide/components/pipelines/list.vue
app/assets/javascripts/ide/components/pipelines/list.vue
+5
-3
No files found.
app/assets/javascripts/ide/components/pipelines/list.vue
View file @
629f11be
<
script
>
/* eslint-disable vue/no-v-html */
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
{
escape
}
from
'
lodash
'
;
import
{
GlLoadingIcon
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlLoadingIcon
,
GlIcon
,
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
{
sprintf
,
__
}
from
'
../../../locale
'
;
import
CiIcon
from
'
../../../vue_shared/components/ci_icon.vue
'
;
import
Tabs
from
'
../../../vue_shared/components/tabs/tabs
'
;
...
...
@@ -22,6 +21,9 @@ export default {
EmptyState
,
GlLoadingIcon
,
},
directives
:
{
GlSafeHtmlDirective
,
},
computed
:
{
...
mapState
([
'
pipelinesEmptyStateSvgPath
'
,
'
links
'
]),
...
mapGetters
([
'
currentProject
'
]),
...
...
@@ -84,7 +86,7 @@ export default {
<div
v-else-if=
"latestPipeline.yamlError"
class=
"bs-callout bs-callout-danger"
>
<p
class=
"gl-mb-0"
>
{{
__
(
'
Found errors in your .gitlab-ci.yml:
'
)
}}
</p>
<p
class=
"gl-mb-0 break-word"
>
{{
latestPipeline
.
yamlError
}}
</p>
<p
class=
"gl-mb-0"
v-html=
"ciLintText
"
></p>
<p
v-safe-html=
"ciLintText"
class=
"gl-mb-0
"
></p>
</div>
<tabs
v-else
class=
"ide-pipeline-list"
>
<tab
:active=
"!pipelineFailed"
>
...
...
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