Commit f160373c authored by Takuya Noguchi's avatar Takuya Noguchi

Remove v-html from monitoring/.../group_empty_state.vue

Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent 989d53d3
<script> <script>
/* eslint-disable vue/no-v-html */ import { GlEmptyState, GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import { GlEmptyState } from '@gitlab/ui';
import { __, sprintf } from '~/locale'; import { __, sprintf } from '~/locale';
import { metricStates } from '../constants'; import { metricStates } from '../constants';
...@@ -8,6 +7,9 @@ export default { ...@@ -8,6 +7,9 @@ export default {
components: { components: {
GlEmptyState, GlEmptyState,
}, },
directives: {
SafeHtml,
},
props: { props: {
documentationPath: { documentationPath: {
type: String, type: String,
...@@ -100,7 +102,7 @@ export default { ...@@ -100,7 +102,7 @@ export default {
:compact="true" :compact="true"
> >
<template v-if="currentState.slottedDescription" #description> <template v-if="currentState.slottedDescription" #description>
<div v-html="currentState.slottedDescription"></div> <div v-safe-html="currentState.slottedDescription"></div>
</template> </template>
</gl-empty-state> </gl-empty-state>
</template> </template>
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