debian-mirror-gitlab/app/assets/javascripts/pages/groups/show/index.js

23 lines
688 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
/* eslint-disable no-new */
import NewGroupChild from '~/groups/new_group_child';
import notificationsDropdown from '~/notifications_dropdown';
import NotificationsForm from '~/notifications_form';
import ProjectsList from '~/projects_list';
import ShortcutsNavigation from '~/shortcuts_navigation';
2018-03-27 19:54:05 +05:30
import initGroupsList from '~/groups';
2018-03-17 18:26:18 +05:30
document.addEventListener('DOMContentLoaded', () => {
const newGroupChildWrapper = document.querySelector('.js-new-project-subgroup');
new ShortcutsNavigation();
new NotificationsForm();
notificationsDropdown();
new ProjectsList();
if (newGroupChildWrapper) {
new NewGroupChild(newGroupChildWrapper);
}
initGroupsList();
});