debian-mirror-gitlab/app/assets/javascripts/environments/init_confirm_rollback_modal.js
2021-10-27 15:23:28 +05:30

16 lines
447 B
JavaScript

import Vue from 'vue';
import RollbackModalManager from './components/rollback_modal_manager.vue';
const mountConfirmRollbackModal = (optionalProps) =>
new Vue({
render(h) {
return h(RollbackModalManager, {
props: {
selector: '.js-confirm-rollback-modal-button',
...optionalProps,
},
});
},
}).$mount();
export default (optionalProps = {}) => mountConfirmRollbackModal(optionalProps);