Fixes Renaming repository (project[name]) fails on 2nd try whend the validation has failed
This commit is contained in:
parent
02d9f54f19
commit
7d79b5ccc4
3 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Allows project rename after validation error
|
||||
merge_request: 17150
|
||||
author:
|
||||
type: fixed
|
Loading…
Reference in a new issue