gitlab-org--gitlab-foss/app/assets/javascripts/sidebar/sidebar_bundle.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
500 B
JavaScript
Raw Normal View History

import { mountSidebar, getSidebarOptions } from 'ee_else_ce/sidebar/mount_sidebar';
import Mediator from './sidebar_mediator';
2017-10-31 12:15:03 -04:00
export default (store) => {
2017-12-07 12:37:33 -05:00
const mediator = new Mediator(getSidebarOptions());
mediator
.fetch()
.then(() => {
if (window.gon?.features?.mrAttentionRequests) {
return import('~/attention_requests');
}
return null;
})
.then((module) => module?.initSideNavPopover())
.catch(() => {});
mountSidebar(mediator, store);
};