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

Switch to v-safe-html in tree removal modal

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