Commit bdde0c34 authored by Peter Hegman's avatar Peter Hegman

Merge branch 'master' into 'master'

Replace v-html with v-safe-html in note_header.vue

See merge request gitlab-org/gitlab!70890
parents 5738f9b1 a4feb259
<script> <script>
import { GlIcon, GlLoadingIcon, GlTooltipDirective } from '@gitlab/ui'; import {
GlIcon,
GlLoadingIcon,
GlTooltipDirective,
GlSafeHtmlDirective as SafeHtml,
} from '@gitlab/ui';
import { mapActions } from 'vuex'; import { mapActions } from 'vuex';
import timeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue'; import timeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
import UserNameWithStatus from '../../sidebar/components/assignees/user_name_with_status.vue'; import UserNameWithStatus from '../../sidebar/components/assignees/user_name_with_status.vue';
export default { export default {
safeHtmlConfig: { ADD_TAGS: ['gl-emoji'] },
components: { components: {
timeAgoTooltip, timeAgoTooltip,
GitlabTeamMemberBadge: () => GitlabTeamMemberBadge: () =>
...@@ -14,6 +20,7 @@ export default { ...@@ -14,6 +20,7 @@ export default {
UserNameWithStatus, UserNameWithStatus,
}, },
directives: { directives: {
SafeHtml,
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
props: { props: {
...@@ -165,10 +172,10 @@ export default { ...@@ -165,10 +172,10 @@ export default {
<span <span
v-if="authorStatus" v-if="authorStatus"
ref="authorStatus" ref="authorStatus"
v-safe-html:[$options.safeHtmlConfig]="authorStatus"
v-on=" v-on="
authorStatusHasTooltip ? { mouseenter: removeEmojiTitle, mouseleave: addEmojiTitle } : {} authorStatusHasTooltip ? { mouseenter: removeEmojiTitle, mouseleave: addEmojiTitle } : {}
" "
v-html="authorStatus /* eslint-disable-line vue/no-v-html */"
></span> ></span>
<span class="text-nowrap author-username"> <span class="text-nowrap author-username">
<a <a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment