debian-mirror-gitlab/app/assets/javascripts/pipelines.js
2018-03-17 18:26:18 +05:30

15 lines
431 B
JavaScript

import LinkedTabs from './lib/utils/bootstrap_linked_tabs';
import { setCiStatusFavicon } from './lib/utils/common_utils';
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);
}
}
}