Fixes Renaming repository (project[name]) fails on 2nd try whend the validation has failed

This commit is contained in:
Jacopo 2018-02-15 15:09:57 +01:00
parent 02d9f54f19
commit 7d79b5ccc4
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