debian-mirror-gitlab/app/assets/javascripts/pages/admin/projects/index.js
2018-03-27 19:54:05 +05:30

9 lines
333 B
JavaScript

import ProjectsList from '../../../projects_list';
import NamespaceSelect from '../../../namespace_select';
document.addEventListener('DOMContentLoaded', () => {
new ProjectsList(); // eslint-disable-line no-new
document.querySelectorAll('.js-namespace-select')
.forEach(dropdown => new NamespaceSelect({ dropdown }));
});