Commit 56a0e576 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch '241918-remove-v-html-from-app-assets-javascripts-clusters-components' into 'master'

Remove v-html from app/assets/javascripts/clusters/components/uninstall_application_confirmation_modal.vue

See merge request gitlab-org/gitlab!41515
parents baaff870 a5471b02
<script> <script>
/* eslint-disable vue/no-v-html */ import { GlModal, GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import { GlModal } from '@gitlab/ui';
import trackUninstallButtonClickMixin from 'ee_else_ce/clusters/mixins/track_uninstall_button_click'; import trackUninstallButtonClickMixin from 'ee_else_ce/clusters/mixins/track_uninstall_button_click';
import { sprintf, s__ } from '~/locale'; import { sprintf, s__ } from '~/locale';
import { import {
...@@ -45,6 +44,9 @@ export default { ...@@ -45,6 +44,9 @@ export default {
components: { components: {
GlModal, GlModal,
}, },
directives: {
SafeHtml,
},
mixins: [trackUninstallButtonClickMixin], mixins: [trackUninstallButtonClickMixin],
props: { props: {
application: { application: {
...@@ -94,6 +96,6 @@ export default { ...@@ -94,6 +96,6 @@ export default {
:title="title" :title="title"
@ok="confirmUninstall()" @ok="confirmUninstall()"
> >
{{ warningText }} <span v-html="customAppWarningText"></span> {{ warningText }} <span v-safe-html="customAppWarningText"></span>
</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