mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-19 01:23:09 +00:00
17 lines
408 B
JavaScript
17 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);
|