2020-02-25 07:08:48 -05:00
|
|
|
import Vue from 'vue';
|
|
|
|
import ConfirmModal from '~/vue_shared/components/confirm_modal.vue';
|
|
|
|
|
2020-03-06 04:08:13 -05:00
|
|
|
const mountConfirmModal = () => {
|
2020-02-25 07:08:48 -05:00
|
|
|
return new Vue({
|
|
|
|
render(h) {
|
2020-03-06 04:08:13 -05:00
|
|
|
return h(ConfirmModal, {
|
2020-03-10 17:09:21 -04:00
|
|
|
props: { selector: '.js-confirm-modal-button' },
|
2020-03-06 04:08:13 -05:00
|
|
|
});
|
2020-02-25 07:08:48 -05:00
|
|
|
},
|
|
|
|
}).$mount();
|
|
|
|
};
|
|
|
|
|
2020-03-06 04:08:13 -05:00
|
|
|
export default () => mountConfirmModal();
|