Commit 8ec7600f authored by Kev's avatar Kev

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

parent 4e0d6868
<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>
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