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
aefc7ad6
Commit
aefc7ad6
authored
Sep 09, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to v-safe-html in request_warning.vue
parent
5c2ac9ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
app/assets/javascripts/performance_bar/components/request_warning.vue
...avascripts/performance_bar/components/request_warning.vue
+6
-5
No files found.
app/assets/javascripts/performance_bar/components/request_warning.vue
View file @
aefc7ad6
<
script
>
import
{
GlPopover
}
from
'
@gitlab/ui
'
;
import
{
GlPopover
,
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
{
glEmojiTag
}
from
'
~/emoji
'
;
export
default
{
components
:
{
GlPopover
,
},
directives
:
{
SafeHtml
:
GlSafeHtmlDirective
,
},
props
:
{
htmlId
:
{
type
:
String
,
...
...
@@ -31,14 +34,12 @@ export default {
methods
:
{
glEmojiTag
,
},
safeHtmlConfig
:
{
ADD_TAGS
:
[
'
gl-emoji
'
]
},
};
</
script
>
<
template
>
<span
v-if=
"hasWarnings"
class=
"gl-cursor-default"
>
<span
:id=
"htmlId"
v-html=
"glEmojiTag('warning') /* eslint-disable-line vue/no-v-html */"
></span>
<span
:id=
"htmlId"
v-safe-html:
[$
options.safeHtmlConfig]=
"glEmojiTag('warning')"
></span>
<gl-popover
placement=
"bottom"
:target=
"htmlId"
:content=
"warningMessage"
/>
</span>
</
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