Commit 736a3900 authored by Scott Hampton's avatar Scott Hampton

Merge branch 'f_caplette/move-pipeline-editor-button-repo' into 'master'

Move Pipeline Editor repo link outside of feature flag conditional

See merge request gitlab-org/gitlab!57144
parents 572bb8c0 ec7e9ab1
......@@ -9,8 +9,8 @@
- else
= edit_blob_button(@project, @ref, @path, blob: blob)
= ide_edit_button(@project, @ref, @path, blob: blob)
- if can_view_pipeline_editor?(@project) && @path == @project.ci_config_path_or_default
= link_to "Pipeline Editor", project_ci_pipeline_editor_path(@project), class: "btn gl-button btn-confirm-secondary gl-ml-3"
- if can_view_pipeline_editor?(@project) && @path == @project.ci_config_path_or_default
= link_to "Pipeline Editor", project_ci_pipeline_editor_path(@project), class: "btn gl-button btn-confirm-secondary gl-ml-3"
.btn-group{ role: "group", class: ("gl-ml-3" if current_user) }>
= render_if_exists 'projects/blob/header_file_locks_link'
- if current_user
......
---
title: Move Pipeline Editor repo link outside of feature flag conditional
merge_request: 57144
author:
type: changed
......@@ -10,7 +10,6 @@ RSpec.describe 'User views pipeline editor button on root ci config file', :js d
context "when the ci config is the root file" do
before do
stub_feature_flags(consolidated_edit_button: false)
project.add_developer(user)
sign_in(user)
end
......@@ -33,7 +32,6 @@ RSpec.describe 'User views pipeline editor button on root ci config file', :js d
context "when user cannot collaborate" do
before do
stub_feature_flags(consolidated_edit_button: false)
sign_in(user)
end
it 'does not shows the Pipeline Editor button' do
......
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