Commit 7171cae1 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '241879-Replace-v-html' into 'master'

Replace v-html with v-safe-html in note_signed_out_widget_spec.js

See merge request gitlab-org/gitlab!41219
parents 4e12e75a 0376d7ed
<script> <script>
/* eslint-disable vue/no-v-html */ import { GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { __, sprintf } from '~/locale'; import { __, sprintf } from '~/locale';
export default { export default {
directives: {
SafeHtml,
},
computed: { computed: {
...mapGetters(['getNotesDataByProp']), ...mapGetters(['getNotesDataByProp']),
registerLink() { registerLink() {
...@@ -31,5 +34,5 @@ export default { ...@@ -31,5 +34,5 @@ export default {
</script> </script>
<template> <template>
<div class="disabled-comment text-center" v-html="signedOutText"></div> <div v-safe-html="signedOutText" class="disabled-comment text-center"></div>
</template> </template>
---
title: Replace v-html with v-safe-html in note_signed_out_widget_spec.js
merge_request: 41219
author: Kev @KevSlashNull
type: other
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