Commit 1d84b14b authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch...

Merge branch '241913-remove-v-html-from-app-assets-javascripts-issue_show-components-title-vue' into 'master'

Remove v-html from app/assets/javascripts/issue_show/components/title.vue

Closes #241913

See merge request gitlab-org/gitlab!41520
parents bed67564 cd8d19b9
<script> <script>
/* eslint-disable vue/no-v-html */ import { GlButton, GlTooltipDirective, GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import { GlButton, GlTooltipDirective } from '@gitlab/ui';
import animateMixin from '../mixins/animate'; import animateMixin from '../mixins/animate';
import eventHub from '../event_hub'; import eventHub from '../event_hub';
...@@ -10,6 +9,7 @@ export default { ...@@ -10,6 +9,7 @@ export default {
}, },
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
SafeHtml,
}, },
mixins: [animateMixin], mixins: [animateMixin],
props: { props: {
...@@ -65,13 +65,13 @@ export default { ...@@ -65,13 +65,13 @@ export default {
<template> <template>
<div class="title-container"> <div class="title-container">
<h2 <h2
v-safe-html="titleHtml"
:class="{ :class="{
'issue-realtime-pre-pulse': preAnimation, 'issue-realtime-pre-pulse': preAnimation,
'issue-realtime-trigger-pulse': pulseAnimation, 'issue-realtime-trigger-pulse': pulseAnimation,
}" }"
class="title qa-title" class="title qa-title"
dir="auto" dir="auto"
v-html="titleHtml"
></h2> ></h2>
<gl-button <gl-button
v-if="showInlineEditButton && canUpdate" v-if="showInlineEditButton && canUpdate"
......
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