gitlab-org--gitlab-foss/app/assets/javascripts/init_issuable_sidebar.js
Phil Hughes 887227e037 moved some more inline code
removed some global variable comments
2017-07-25 16:46:15 +01:00

18 lines
505 B
JavaScript

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