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

21 lines
574 B
JavaScript
Raw Normal View History

/* eslint-disable no-new */
/* global MilestoneSelect */
/* global LabelsSelect */
import IssuableContext from './issuable_context';
/* global Sidebar */
2017-10-18 11:31:01 +00: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);
gl.Subscription.bindAll('.subscription');
2017-10-18 11:31:01 +00:00
new DueDateSelectors();
window.sidebar = new Sidebar();
};