gitlab-org--gitlab-foss/app/assets/javascripts/init_issuable_sidebar.js

21 lines
578 B
JavaScript
Raw Normal View History

/* eslint-disable no-new */
2017-12-28 15:07:05 -05:00
import MilestoneSelect from './milestone_select';
import LabelsSelect from './labels_select';
import IssuableContext from './issuable_context';
2017-12-15 07:57:08 -05:00
import Sidebar from './right_sidebar';
2017-10-18 07:31:01 -04:00
import DueDateSelectors from './due_date_select';
export default () => {
const sidebarOptions = JSON.parse(document.querySelector('.js-sidebar-options').innerHTML);
new MilestoneSelect({
full_path: sidebarOptions.fullPath,
});
new LabelsSelect();
new IssuableContext(sidebarOptions.currentUser);
2017-10-18 07:31:01 -04:00
new DueDateSelectors();
2017-12-15 07:57:08 -05:00
Sidebar.initialize();
};