Commit 2e0ba140 authored by Patricio Cano's avatar Patricio Cano

Show flash notice when Git Hooks are updated successfully

parent 8055ca04
...@@ -9,6 +9,7 @@ v 8.9.0 (unreleased) ...@@ -9,6 +9,7 @@ v 8.9.0 (unreleased)
- Distribute RepositoryUpdateMirror jobs in time and add exclusive lease on them by project_id - Distribute RepositoryUpdateMirror jobs in time and add exclusive lease on them by project_id
- [Elastic] Move ES settings to application settings - [Elastic] Move ES settings to application settings
- Disable mirror flag for projects without import_url - Disable mirror flag for projects without import_url
- Show flash notice when Git Hooks are updated successfully
- [Elastic] Project members with guest role can't access confidential issues - [Elastic] Project members with guest role can't access confidential issues
v 8.8.5 v 8.8.5
......
...@@ -10,7 +10,7 @@ class Admin::GitHooksController < Admin::ApplicationController ...@@ -10,7 +10,7 @@ class Admin::GitHooksController < Admin::ApplicationController
@git_hook.update_attributes(git_hook_params.merge(is_sample: true)) @git_hook.update_attributes(git_hook_params.merge(is_sample: true))
if @git_hook.valid? if @git_hook.valid?
redirect_to admin_git_hooks_path redirect_to admin_git_hooks_path, notice: 'Git Hooks updated successfully.'
else else
render :index render :index
end end
......
...@@ -17,7 +17,7 @@ class Projects::GitHooksController < Projects::ApplicationController ...@@ -17,7 +17,7 @@ class Projects::GitHooksController < Projects::ApplicationController
@git_hook.update_attributes(git_hook_params) @git_hook.update_attributes(git_hook_params)
if @git_hook.valid? if @git_hook.valid?
redirect_to namespace_project_git_hooks_path(@project.namespace, @project) redirect_to namespace_project_git_hooks_path(@project.namespace, @project), notice: 'Git Hooks updated successfully.'
else else
render :index render :index
end end
......
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