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