debian-mirror-gitlab/app/assets/javascripts/confirm_modal.js
2021-03-08 18:12:59 +05:30

16 lines
408 B
JavaScript

import Vue from 'vue';
import ConfirmModal from '~/vue_shared/components/confirm_modal.vue';
const mountConfirmModal = (optionalProps) =>
new Vue({
render(h) {
return h(ConfirmModal, {
props: {
selector: '.js-confirm-modal-button',
...optionalProps,
},
});
},
}).$mount();
export default (optionalProps = {}) => mountConfirmModal(optionalProps);