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?
- 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
%h4= _('Mirroring repositories')
%button.btn.js-settings-toggle
......
......@@ -59,7 +59,7 @@ module EE
flash[:notice] = "The repository is being updated..."
end
redirect_to_repository_settings(project)
redirect_to_repository_settings(project, anchor: 'js-mirror-settings')
end
def mirror_params_attributes
......
......@@ -19,7 +19,7 @@ class Projects::PushRulesController < Projects::ApplicationController
flash[:alert] = @push_rule.errors.full_messages.join(', ').html_safe
end
redirect_to_repository_settings(@project)
redirect_to_repository_settings(@project, anchor: 'js-push-rules')
end
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