Commit 5959b2c1 authored by Mehul Sharma's avatar Mehul Sharma Committed by Illya Klymov

Replaces v-html with v-safe-html

parent 68e74193
<script>
import { GlAlert, GlBadge, GlPagination, GlTab, GlTabs } from '@gitlab/ui';
import {
GlAlert,
GlBadge,
GlPagination,
GlTab,
GlTabs,
GlSafeHtmlDirective as SafeHtml,
} from '@gitlab/ui';
import Api from '~/api';
import { updateHistory, setUrlParams } from '~/lib/utils/url_utility';
import { __ } from '~/locale';
......@@ -20,6 +27,9 @@ export default {
GlTab,
FilteredSearchBar,
},
directives: {
SafeHtml,
},
inject: {
projectPath: {
default: '',
......@@ -265,7 +275,7 @@ export default {
<template>
<div class="incident-management-list">
<gl-alert v-if="showErrorMsg" variant="danger" @dismiss="$emit('error-alert-dismissed')">
<p v-html="serverErrorMessage || i18n.errorMsg /* eslint-disable-line vue/no-v-html */"></p>
<p v-safe-html="serverErrorMessage || i18n.errorMsg"></p>
</gl-alert>
<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