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> <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