Commit 4342e391 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch '43201-rename-repository-submit-button-disabled' into 'master'

Resolve "Renaming repository (project[name]) fails on 2nd try if the validation has failed"

Closes #43201

See merge request gitlab-org/gitlab-ce!17150
parents 681e5f77 7d79b5cc
......@@ -58,7 +58,7 @@
- if @project.avatar?
%hr
= link_to _('Remove avatar'), project_avatar_path(@project), data: { confirm: _("Avatar will be removed. Are you sure?") }, method: :delete, class: "btn btn-danger btn-inverted"
= f.submit 'Save changes', class: "btn btn-success"
= f.submit 'Save changes', class: "btn btn-success js-btn-save-general-project-settings"
%section.settings.sharing-permissions.no-animate{ class: ('expanded' if expanded) }
.settings-header
......
......@@ -6,4 +6,4 @@
$(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
$('.save-project-loader').hide();
$('.project-edit-container').show();
$('.edit-project .btn-save').enable();
$('.edit-project .js-btn-save-general-project-settings').enable();
---
title: Allows project rename after validation error
merge_request: 17150
author:
type: fixed
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