debian-mirror-gitlab/app/assets/javascripts/sidebar/sidebar_bundle.js

20 lines
500 B
JavaScript
Raw Normal View History

2021-11-11 11:23:49 +05:30
import { mountSidebar, getSidebarOptions } from 'ee_else_ce/sidebar/mount_sidebar';
2021-03-11 19:13:27 +05:30
import Mediator from './sidebar_mediator';
2017-08-17 22:00:37 +05:30
2021-11-11 11:23:49 +05:30
export default (store) => {
2018-03-17 18:26:18 +05:30
const mediator = new Mediator(getSidebarOptions());
2022-05-07 20:08:51 +05:30
mediator
.fetch()
.then(() => {
if (window.gon?.features?.mrAttentionRequests) {
return import('~/attention_requests');
}
return null;
})
.then((module) => module?.initSideNavPopover())
.catch(() => {});
2017-08-17 22:00:37 +05:30
2021-11-11 11:23:49 +05:30
mountSidebar(mediator, store);
2018-03-27 19:54:05 +05:30
};