From 18cfacc9450f69c8f2a898e5b31bb4651ab13ddc Mon Sep 17 00:00:00 2001 From: Regis Date: Tue, 15 Nov 2016 13:45:05 -0700 Subject: [PATCH] more fine tuning - catching edge cases - progress in testing - [ci skip] --- .../vue_pipelines_index/branch_commit.js.es6 | 1 - .../vue_pipelines_index/index.js.es6 | 2 +- .../pipeline_actions.js.es6 | 64 ++++++++------- .../vue_pipelines_index/pipeline_url.js.es6 | 23 +++++- .../vue_pipelines_index/pipelines.js.es6 | 4 +- app/views/projects/pipelines/index.html.haml | 2 - spec/features/projects/pipelines_spec.rb | 80 +++++++++++++++---- 7 files changed, 122 insertions(+), 54 deletions(-) diff --git a/app/assets/javascripts/vue_pipelines_index/branch_commit.js.es6 b/app/assets/javascripts/vue_pipelines_index/branch_commit.js.es6 index b594d08e96d..6bebbd221fe 100644 --- a/app/assets/javascripts/vue_pipelines_index/branch_commit.js.es6 +++ b/app/assets/javascripts/vue_pipelines_index/branch_commit.js.es6 @@ -46,7 +46,6 @@ { const url = window.location.href; - if (~url.indexOf('scope')) return null; + if (~url.indexOf('scope') && !~url.indexOf('scope=pipelines')) return null; const project = document.querySelector('.pipelines'); diff --git a/app/assets/javascripts/vue_pipelines_index/pipeline_actions.js.es6 b/app/assets/javascripts/vue_pipelines_index/pipeline_actions.js.es6 index 1e81862ec83..a1491040f95 100644 --- a/app/assets/javascripts/vue_pipelines_index/pipeline_actions.js.es6 +++ b/app/assets/javascripts/vue_pipelines_index/pipeline_actions.js.es6 @@ -16,35 +16,41 @@