Commit 0f285e54 authored by Dheeraj Joshi's avatar Dheeraj Joshi

Remove v-html from frequent items list component

parent 2fac068e
<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