2017-05-06 13:02:06 -04:00
|
|
|
import LinkedTabs from './lib/utils/bootstrap_linked_tabs';
|
2016-12-13 22:01:05 -05:00
|
|
|
|
2017-05-06 13:02:06 -04:00
|
|
|
export default class Pipelines {
|
|
|
|
constructor(options = {}) {
|
|
|
|
if (options.initTabs && options.tabsOptions) {
|
|
|
|
// eslint-disable-next-line no-new
|
|
|
|
new LinkedTabs(options.tabsOptions);
|
2016-09-12 06:19:20 -04:00
|
|
|
}
|
|
|
|
|
2017-05-06 13:02:06 -04:00
|
|
|
if (options.pipelineStatusUrl) {
|
|
|
|
gl.utils.setCiStatusFavicon(options.pipelineStatusUrl);
|
2016-08-23 12:02:52 -04:00
|
|
|
}
|
2016-08-17 17:41:24 -04:00
|
|
|
}
|
2017-05-06 13:02:06 -04:00
|
|
|
}
|