debian-mirror-gitlab/app/assets/javascripts/pages/admin/projects/index.js

29 lines
715 B
JavaScript
Raw Normal View History

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