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