2021-09-09 11:09:24 -04:00
|
|
|
import { mountSidebar, getSidebarOptions } from 'ee_else_ce/sidebar/mount_sidebar';
|
2021-02-14 13:09:20 -05:00
|
|
|
import Mediator from './sidebar_mediator';
|
2017-10-31 12:15:03 -04:00
|
|
|
|
2021-09-09 11:09:24 -04:00
|
|
|
export default (store) => {
|
2017-12-07 12:37:33 -05:00
|
|
|
const mediator = new Mediator(getSidebarOptions());
|
2022-03-14 11:09:32 -04:00
|
|
|
mediator
|
|
|
|
.fetch()
|
|
|
|
.then(() => {
|
|
|
|
if (window.gon?.features?.mrAttentionRequests) {
|
|
|
|
return import('~/attention_requests');
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
})
|
|
|
|
.then((module) => module?.initSideNavPopover())
|
|
|
|
.catch(() => {});
|
2017-05-04 08:11:15 -04:00
|
|
|
|
2021-09-09 11:09:24 -04:00
|
|
|
mountSidebar(mediator, store);
|
2018-02-23 17:57:09 -05:00
|
|
|
};
|