Commit 27dbcc30 authored by Mike Greiling's avatar Mike Greiling

ensure all ee-specific project repository settings panels remain open after form submission

parent 81bdddc8
- expanded = Rails.env.test? - expanded = Rails.env.test?
- protocols = Gitlab::UrlSanitizer::ALLOWED_SCHEMES.join('|') - protocols = Gitlab::UrlSanitizer::ALLOWED_SCHEMES.join('|')
%section.settings.project-mirror-settings.js-mirror-settings.no-animate{ class: ('expanded' if expanded) } %section.settings.project-mirror-settings.js-mirror-settings.no-animate#js-mirror-settings{ class: ('expanded' if expanded) }
.settings-header .settings-header
%h4= _('Mirroring repositories') %h4= _('Mirroring repositories')
%button.btn.js-settings-toggle %button.btn.js-settings-toggle
......
...@@ -59,7 +59,7 @@ module EE ...@@ -59,7 +59,7 @@ module EE
flash[:notice] = "The repository is being updated..." flash[:notice] = "The repository is being updated..."
end end
redirect_to_repository_settings(project) redirect_to_repository_settings(project, anchor: 'js-mirror-settings')
end end
def mirror_params_attributes def mirror_params_attributes
......
...@@ -19,7 +19,7 @@ class Projects::PushRulesController < Projects::ApplicationController ...@@ -19,7 +19,7 @@ class Projects::PushRulesController < Projects::ApplicationController
flash[:alert] = @push_rule.errors.full_messages.join(', ').html_safe flash[:alert] = @push_rule.errors.full_messages.join(', ').html_safe
end end
redirect_to_repository_settings(@project) redirect_to_repository_settings(@project, anchor: 'js-push-rules')
end end
private private
......
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