debian-mirror-gitlab/app/assets/javascripts/pipelines.js

16 lines
431 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
import LinkedTabs from './lib/utils/bootstrap_linked_tabs';
2018-03-17 18:26:18 +05:30
import { setCiStatusFavicon } from './lib/utils/common_utils';
2017-08-17 22:00:37 +05:30
export default class Pipelines {
constructor(options = {}) {
if (options.initTabs && options.tabsOptions) {
// eslint-disable-next-line no-new
new LinkedTabs(options.tabsOptions);
}
if (options.pipelineStatusUrl) {
2018-03-17 18:26:18 +05:30
setCiStatusFavicon(options.pipelineStatusUrl);
2017-08-17 22:00:37 +05:30
}
}
}