Skip to content
Snippets Groups Projects
Commit f4ee16e3 authored by NataliaTepluhina's avatar NataliaTepluhina
Browse files

Fixed v-html to v-safe-html

parent b021a4de
No related branches found
No related tags found
No related merge requests found
<script>
/* eslint-disable vue/no-v-html */
import { ApolloMutation } from 'vue-apollo';
import { GlTooltipDirective, GlIcon, GlLink } from '@gitlab/ui';
import { GlTooltipDirective, GlIcon, GlLink, GlSafeHtmlDirective } from '@gitlab/ui';
import updateNoteMutation from '../../graphql/mutations/update_note.mutation.graphql';
import UserAvatarLink from '~/vue_shared/components/user_avatar/user_avatar_link.vue';
import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue';
Loading
Loading
@@ -22,6 +21,7 @@ export default {
},
directives: {
GlTooltip: GlTooltipDirective,
SafeHtml: GlSafeHtmlDirective,
},
props: {
note: {
Loading
Loading
@@ -94,7 +94,7 @@ export default {
:data-username="author.username"
>
<span class="note-header-author-name gl-font-weight-bold">{{ author.name }}</span>
<span v-if="author.status_tooltip_html" v-html="author.status_tooltip_html"></span>
<span v-if="author.status_tooltip_html" v-safe-html="author.status_tooltip_html"></span>
<span class="note-headline-light">@{{ author.username }}</span>
</gl-link>
<span class="note-headline-light note-headline-meta">
Loading
Loading
@@ -123,9 +123,9 @@ export default {
</div>
<template v-if="!isEditing">
<div
v-safe-html="note.bodyHtml"
class="note-text js-note-text md"
data-qa-selector="note_content"
v-html="note.bodyHtml"
></div>
<slot name="resolvedStatus"></slot>
</template>
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment