summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipelines.js
blob: 3b4e8d0e019ef065dc1115892cf47f101cc4487b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import LinkedTabs from './lib/utils/bootstrap_linked_tabs';
import { setCiStatusFavicon } from './lib/utils/favicon_ci';

export default class Pipelines {
  constructor(options = {}) {
    if (options.initTabs && options.tabsOptions) {
      // eslint-disable-next-line no-new
      new LinkedTabs(options.tabsOptions);
    }

    if (options.pipelineStatusUrl) {
      setCiStatusFavicon(options.pipelineStatusUrl);
    }
  }
}