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
c9f22f82
Commit
c9f22f82
authored
Sep 08, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to v-safe-html for IDE error messages
parent
36302fb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
app/assets/javascripts/ide/components/error_message.vue
app/assets/javascripts/ide/components/error_message.vue
+5
-2
No files found.
app/assets/javascripts/ide/components/error_message.vue
View file @
c9f22f82
<
script
>
import
{
GlAlert
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
GlAlert
,
GlLoadingIcon
,
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
{
mapActions
}
from
'
vuex
'
;
export
default
{
...
...
@@ -7,6 +7,9 @@ export default {
GlAlert
,
GlLoadingIcon
,
},
directives
:
{
SafeHtml
:
GlSafeHtmlDirective
,
},
props
:
{
message
:
{
type
:
Object
,
...
...
@@ -55,7 +58,7 @@ export default {
@
dismiss=
"dismiss"
@
primaryAction=
"doAction"
>
<span
v-
html=
"message.text /* eslint-disable-line vue/no-v-html */
"
></span>
<span
v-
safe-html=
"message.text
"
></span>
<gl-loading-icon
v-show=
"isLoading"
size=
"sm"
inline
class=
"vertical-align-middle ml-1"
/>
</gl-alert>
</
template
>
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