Commit 0f6380f9 authored by Dheeraj Joshi's avatar Dheeraj Joshi

Switch to v-safe-html in tree removal modal

parent 9b04d9a5
<script>
import { GlModal } from '@gitlab/ui';
import { GlModal, GlSafeHtmlDirective } from '@gitlab/ui';
import { escape } from 'lodash';
import { mapState, mapActions } from 'vuex';
......@@ -12,6 +12,9 @@ export default {
components: {
GlModal,
},
directives: {
SafeHtml: GlSafeHtmlDirective,
},
computed: {
...mapState(['parentItem', 'removeItemModalProps']),
removeItemType() {
......@@ -65,6 +68,6 @@ export default {
})
"
>
<p v-html="modalBody /* eslint-disable-line vue/no-v-html */"></p>
<p v-safe-html="modalBody"></p>
</gl-modal>
</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