debian-mirror-gitlab/app/assets/javascripts/confirm_modal.js

17 lines
406 B
JavaScript
Raw Normal View History

2020-04-08 14:13:33 +05:30
import Vue from 'vue';
import ConfirmModal from '~/vue_shared/components/confirm_modal.vue';
2021-01-03 14:25:43 +05:30
const mountConfirmModal = optionalProps =>
new Vue({
2020-04-08 14:13:33 +05:30
render(h) {
return h(ConfirmModal, {
2021-01-03 14:25:43 +05:30
props: {
selector: '.js-confirm-modal-button',
...optionalProps,
},
2020-04-08 14:13:33 +05:30
});
},
}).$mount();
2021-01-03 14:25:43 +05:30
export default (optionalProps = {}) => mountConfirmModal(optionalProps);