Commit 94075e6b authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'djadmin-v-safe-html-tree-removal' into 'master'

Switch to v-safe-html in tree removal modal

See merge request gitlab-org/gitlab!69848
parents eeb119ff 0f6380f9
<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