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
This commit is contained in:
Filipa Lacerda 2018-02-15 20:47:23 +00:00
commit 4342e3915c
3 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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();

View file

@ -0,0 +1,5 @@
---
title: Allows project rename after validation error
merge_request: 17150
author:
type: fixed