Commit 87daf2ae authored by Sarah GP's avatar Sarah GP

Prettify the file

parent 6ee52539
......@@ -14,8 +14,7 @@ import axios from '~/lib/utils/axios_utils';
Vue.use(Translate);
const createPipelinesDetailApp = (mediator) => {
const createPipelinesDetailApp = mediator => {
// eslint-disable-next-line no-new
new Vue({
el: '#js-pipeline-graph-vue',
......@@ -45,9 +44,9 @@ const createPipelinesDetailApp = (mediator) => {
});
},
});
}
};
const createPipelineHeaderApp = (mediator) => {
const createPipelineHeaderApp = mediator => {
// eslint-disable-next-line no-new
new Vue({
el: '#js-pipeline-header-vue',
......@@ -91,9 +90,9 @@ const createPipelineHeaderApp = (mediator) => {
});
},
});
}
};
const createPipelinesTabs = (dataset) => {
const createPipelinesTabs = dataset => {
const tabsElement = document.querySelector('.pipelines-tabs');
const testReportsEnabled =
window.gon && window.gon.features && window.gon.features.junitPipelineView;
......@@ -106,7 +105,6 @@ const createPipelinesTabs = (dataset) => {
document.querySelector('.pipelines-tabs > li > a.test-tab.active'),
);
if (isTestTabActive) {
testReportsStore.dispatch(fetchReportsAction);
} else {
......@@ -120,9 +118,9 @@ const createPipelinesTabs = (dataset) => {
tabsElement.addEventListener('click', tabClickHandler);
}
}
}
};
const createTestDetails = (detailsEndpoint) => {
const createTestDetails = detailsEndpoint => {
// eslint-disable-next-line no-new
new Vue({
el: '#js-pipeline-tests-detail',
......@@ -144,7 +142,7 @@ const createTestDetails = (detailsEndpoint) => {
document.querySelector('.js-test-report-badge-counter').innerHTML = data.total_count;
})
.catch(() => {});
}
};
export default () => {
const { dataset } = document.querySelector('.js-pipeline-details-vue');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment