Commit 86b08fcf authored by Takuya Noguchi's avatar Takuya Noguchi

Remove v-html from ee/.../license_compliance/.../pipeline_info.vue

Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent 957bd3bc
<script>
/* eslint-disable vue/no-v-html */
import { escape } from 'lodash';
import { GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import { s__, sprintf } from '~/locale';
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
......@@ -9,6 +9,9 @@ export default {
components: {
TimeAgoTooltip,
},
directives: {
SafeHtml,
},
props: {
path: {
required: true,
......@@ -42,10 +45,10 @@ export default {
<template>
<span v-if="hasFullPipelineText">
<span v-html="pipelineText"></span>
<span v-safe-html="pipelineText"></span>
<span></span>
<time-ago-tooltip :time="timestamp" />
</span>
<span v-else v-html="pipelineText"></span>
<span v-else v-safe-html="pipelineText"></span>
</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