2020-07-28 23:09:34 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import NamespaceSelect from '~/namespace_select';
|
2021-03-11 19:13:27 +05:30
|
|
|
import ProjectsList from '~/projects_list';
|
2020-07-28 23:09:34 +05:30
|
|
|
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);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
mountRemoveMemberModal();
|
2020-07-28 23:09:34 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
new ProjectsList(); // eslint-disable-line no-new
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
document
|
|
|
|
.querySelectorAll('.js-namespace-select')
|
|
|
|
.forEach((dropdown) => new NamespaceSelect({ dropdown }));
|