Commit 1c2eff2b authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch 'jivanvl-cleanup-pipeline-index-file' into 'master'

Cleanup unused code in pipelines/index.js file

See merge request gitlab-org/gitlab!61392
parents 97f0109c 04273edd
import $ from 'jquery';
import setupNativeFormVariableList from '~/ci_variable_list/native_form_variable_list';
import NewBranchForm from '~/new_branch_form';
import initNewPipeline from '~/pipeline_new/index';
import initNewPipelineForm from '~/pipeline_new/index';
const el = document.getElementById('js-new-pipeline');
if (el) {
initNewPipeline();
} else {
new NewBranchForm($('.js-new-pipeline-form')); // eslint-disable-line no-new
setupNativeFormVariableList({
container: $('.js-ci-variable-list-section'),
formField: 'variables_attributes',
});
}
initNewPipelineForm();
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