Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sidebar_bundle.js « sidebar « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 74ab65e4e0484391fb294b8f572f5c7b36e01baf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { mountSidebar, getSidebarOptions } from 'ee_else_ce/sidebar/mount_sidebar';
import Mediator from './sidebar_mediator';

export default (store) => {
  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);
};