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

31 lines
842 B
JavaScript
Raw Normal View History

2020-07-28 23:09:34 +05:30
import Vue from 'vue';
2019-07-07 11:18:12 +05:30
import Members from 'ee_else_ce/members';
2020-07-28 23:09:34 +05:30
import memberExpirationDate from '~/member_expiration_date';
import UsersSelect from '~/users_select';
import groupsSelect from '~/groups_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', () => {
2018-03-17 18:26:18 +05:30
groupsSelect();
memberExpirationDate();
2020-07-28 23:09:34 +05:30
memberExpirationDate('.js-access-expiration-date-groups');
mountRemoveMemberModal();
2018-03-17 18:26:18 +05:30
new Members(); // eslint-disable-line no-new
new UsersSelect(); // eslint-disable-line no-new
2018-03-27 19:54:05 +05:30
});