gitlab-org--gitlab-foss/app/assets/javascripts/environments/init_confirm_rollback_modal.js

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);