2017-07-25 11:27:51 -04:00
|
|
|
/* eslint-disable no-new */
|
|
|
|
/* global MilestoneSelect */
|
|
|
|
/* global LabelsSelect */
|
|
|
|
/* global IssuableContext */
|
|
|
|
/* global Sidebar */
|
|
|
|
|
|
|
|
export default () => {
|
2017-07-25 11:46:15 -04:00
|
|
|
const sidebarOptions = JSON.parse(document.querySelector('.js-sidebar-options').innerHTML);
|
|
|
|
|
2017-07-25 11:27:51 -04:00
|
|
|
new MilestoneSelect({
|
2017-07-25 11:46:15 -04:00
|
|
|
full_path: sidebarOptions.fullPath,
|
2017-07-25 11:27:51 -04:00
|
|
|
});
|
|
|
|
new LabelsSelect();
|
2017-07-25 11:46:15 -04:00
|
|
|
new IssuableContext(sidebarOptions.currentUser);
|
2017-07-25 11:27:51 -04:00
|
|
|
gl.Subscription.bindAll('.subscription');
|
|
|
|
new gl.DueDateSelectors();
|
|
|
|
window.sidebar = new Sidebar();
|
|
|
|
};
|