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
cf6691f3
Commit
cf6691f3
authored
Sep 09, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to v-safe-html in header_ci.vue
parent
9cbf90dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
app/assets/javascripts/vue_shared/components/header_ci_component.vue
...javascripts/vue_shared/components/header_ci_component.vue
+4
-2
No files found.
app/assets/javascripts/vue_shared/components/header_ci_component.vue
View file @
cf6691f3
<
script
>
import
{
GlTooltipDirective
,
GlLink
,
GlButton
,
GlTooltip
}
from
'
@gitlab/ui
'
;
import
{
GlTooltipDirective
,
GlLink
,
GlButton
,
GlTooltip
,
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
{
glEmojiTag
}
from
'
../../emoji
'
;
import
{
__
,
sprintf
}
from
'
../../locale
'
;
import
CiIconBadge
from
'
./ci_badge_link.vue
'
;
...
...
@@ -24,6 +24,7 @@ export default {
},
directives
:
{
GlTooltip
:
GlTooltipDirective
,
SafeHtml
:
GlSafeHtmlDirective
,
},
EMOJI_REF
:
'
EMOJI_REF
'
,
props
:
{
...
...
@@ -92,6 +93,7 @@ export default {
this
.
$emit
(
'
clickedSidebarButton
'
);
},
},
safeHtmlConfig
:
{
ADD_TAGS
:
[
'
gl-emoji
'
]
},
};
</
script
>
...
...
@@ -129,8 +131,8 @@ export default {
<span
v-if=
"statusTooltipHTML"
:ref=
"$options.EMOJI_REF"
v-safe-html:
[$
options.safeHtmlConfig]=
"statusTooltipHTML"
:data-testid=
"message"
v-html=
"statusTooltipHTML /* eslint-disable-line vue/no-v-html */"
></span>
</
template
>
</section>
...
...
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