Commit d6b85a6e authored by Dheeraj Joshi's avatar Dheeraj Joshi

Switch to v-safe-html in performance_bar_app.vue

parent 5c2ac9ab
<script> <script>
import { GlSafeHtmlDirective } from '@gitlab/ui';
import { glEmojiTag } from '~/emoji'; import { glEmojiTag } from '~/emoji';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
...@@ -12,6 +13,9 @@ export default { ...@@ -12,6 +13,9 @@ export default {
DetailedMetric, DetailedMetric,
RequestSelector, RequestSelector,
}, },
directives: {
SafeHtml: GlSafeHtmlDirective,
},
props: { props: {
store: { store: {
type: Object, type: Object,
...@@ -128,6 +132,7 @@ export default { ...@@ -128,6 +132,7 @@ export default {
this.currentRequest = newRequestId; this.currentRequest = newRequestId;
}, },
}, },
safeHtmlConfig: { ADD_TAGS: ['gl-emoji'] },
}; };
</script> </script>
<template> <template>
...@@ -143,7 +148,7 @@ export default { ...@@ -143,7 +148,7 @@ export default {
class="current-host" class="current-host"
:class="{ canary: currentRequest.details.host.canary }" :class="{ canary: currentRequest.details.host.canary }"
> >
<span v-html="birdEmoji /* eslint-disable-line vue/no-v-html */"></span> <span v-safe-html:[$options.safeHtmlConfig]="birdEmoji"></span>
{{ currentRequest.details.host.hostname }} {{ currentRequest.details.host.hostname }}
</span> </span>
</div> </div>
......
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