Commit 4ee681d3 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch 'djadmin-v-html-highlight-js' into 'master'

Remove v-html from frequent items list component

See merge request gitlab-org/gitlab!72310
parents f736f85c 0f285e54
<script>
/* eslint-disable vue/require-default-prop */
import { GlButton } from '@gitlab/ui';
import { GlButton, GlSafeHtmlDirective } from '@gitlab/ui';
import highlight from '~/lib/utils/highlight';
import { truncateNamespace } from '~/lib/utils/text_utility';
import { mapVuexModuleState } from '~/lib/utils/vuex_module_mappers';
......@@ -14,6 +14,9 @@ export default {
GlButton,
ProjectAvatar,
},
directives: {
SafeHtml: GlSafeHtmlDirective,
},
mixins: [trackingMixin],
inject: ['vuexModule'],
props: {
......@@ -73,9 +76,9 @@ export default {
<div ref="frequentItemsItemMetadataContainer" class="frequent-items-item-metadata-container">
<div
ref="frequentItemsItemTitle"
v-safe-html="highlightedItemName"
:title="itemName"
class="frequent-items-item-title"
v-html="highlightedItemName /* eslint-disable-line vue/no-v-html */"
></div>
<div
v-if="namespace"
......
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