diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-14 18:27:58 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-28 13:54:36 +0100 |
commit | a2e9bc3584a735c010bbda3cef913601543cfa07 (patch) | |
tree | 74a6c471fa06db4f8247e989722d89cc5fa3258d /app/controllers/projects_controller.rb | |
parent | 4fd015183cdb280083384c69261c2ab5d475a54b (diff) | |
download | gitlab-ce-a2e9bc3584a735c010bbda3cef913601543cfa07.tar.gz |
Delete issue board welcome cookie when project is new
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 76b730198d4..137c0d109e2 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -30,9 +30,12 @@ class ProjectsController < Projects::ApplicationController @project = ::Projects::CreateService.new(current_user, project_params).execute if @project.saved? + cookies[:issue_board_welcome_hidden] = { path: project_path(@project), value: nil, expires: Time.at(0) } + redirect_to( project_path(@project), - notice: "Project '#{@project.name}' was successfully created." + notice: "Project '#{@project.name}' was successfully created.", + flash: { new_project: true } ) else render 'new' |