diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-12-09 16:16:14 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-12-12 12:44:46 +0000 |
commit | 52e0c4ba916d2cbc9bdb0fa0782c6b705c03c5a6 (patch) | |
tree | 93926df8a1b9cacda3945870dbc158f663192b9e /app/assets/javascripts | |
parent | 94e0f402334af845bb44e92a3e2646780d633ce2 (diff) | |
download | gitlab-ce-52e0c4ba916d2cbc9bdb0fa0782c6b705c03c5a6.tar.gz |
Fix tests25483-broken-tabs
Fix broken tests
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/pipelines.js.es6 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/pipelines.js.es6 b/app/assets/javascripts/pipelines.js.es6 index f09c6bb7def..fb95648e1c7 100644 --- a/app/assets/javascripts/pipelines.js.es6 +++ b/app/assets/javascripts/pipelines.js.es6 @@ -15,7 +15,9 @@ addMarginToBuildColumns() { this.pipelineGraph = document.querySelector('.js-pipeline-graph'); - const secondChildBuildNodes = document.querySelector('.js-pipeline-graph').querySelectorAll('.build:nth-child(2)'); + + const secondChildBuildNodes = this.pipelineGraph.querySelectorAll('.build:nth-child(2)'); + for (const buildNodeIndex in secondChildBuildNodes) { const buildNode = secondChildBuildNodes[buildNodeIndex]; const firstChildBuildNode = buildNode.previousElementSibling; @@ -28,6 +30,7 @@ const columnBuilds = previousColumn.querySelectorAll('.build'); if (columnBuilds.length === 1) previousColumn.classList.add('no-margin'); } + this.pipelineGraph.classList.remove('hidden'); } } |