23 lines
543 B
JavaScript
23 lines
543 B
JavaScript
import Vue from 'vue';
|
|
import UsersSelect from '~/users_select';
|
|
import RemoveMemberModal from '~/vue_shared/components/remove_member_modal.vue';
|
|
|
|
function mountRemoveMemberModal() {
|
|
const el = document.querySelector('.js-remove-member-modal');
|
|
if (!el) {
|
|
return false;
|
|
}
|
|
|
|
return new Vue({
|
|
el,
|
|
render(createComponent) {
|
|
return createComponent(RemoveMemberModal);
|
|
},
|
|
});
|
|
}
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
mountRemoveMemberModal();
|
|
|
|
new UsersSelect(); // eslint-disable-line no-new
|
|
});
|