diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2018-02-15 15:09:57 +0100 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2018-02-15 18:17:23 +0100 |
commit | 7d79b5ccc4bb5f51bf04f80083c31127f70c06ca (patch) | |
tree | f47514de596e3973a56e332234513d6729dd6f98 | |
parent | 02d9f54f197a28f2d102b7346b1212edb7ddc117 (diff) | |
download | gitlab-ce-7d79b5ccc4bb5f51bf04f80083c31127f70c06ca.tar.gz |
Fixes Renaming repository (project[name]) fails on 2nd try whend the validation has failed
-rw-r--r-- | app/views/projects/edit.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/update.js.haml | 2 | ||||
-rw-r--r-- | changelogs/unreleased/43201-rename-repository-submit-button-disabled.yml | 5 |
3 files changed, 7 insertions, 2 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml index e16d132f869..0931ceb1512 100644 --- a/app/views/projects/edit.html.haml +++ b/app/views/projects/edit.html.haml @@ -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 diff --git a/app/views/projects/update.js.haml b/app/views/projects/update.js.haml index 2c05ebe52ae..1a353953838 100644 --- a/app/views/projects/update.js.haml +++ b/app/views/projects/update.js.haml @@ -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(); diff --git a/changelogs/unreleased/43201-rename-repository-submit-button-disabled.yml b/changelogs/unreleased/43201-rename-repository-submit-button-disabled.yml new file mode 100644 index 00000000000..b527000332e --- /dev/null +++ b/changelogs/unreleased/43201-rename-repository-submit-button-disabled.yml @@ -0,0 +1,5 @@ +--- +title: Allows project rename after validation error +merge_request: 17150 +author: +type: fixed |