debian-mirror-gitlab/app/assets/javascripts/pages/admin/projects/index.js
2018-12-13 13:39:08 +05:30

10 lines
338 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 }));
});