summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-10-14 18:27:58 +0100
committerPhil Hughes <me@iamphill.com>2016-10-28 13:54:36 +0100
commita2e9bc3584a735c010bbda3cef913601543cfa07 (patch)
tree74a6c471fa06db4f8247e989722d89cc5fa3258d /app/controllers/projects_controller.rb
parent4fd015183cdb280083384c69261c2ab5d475a54b (diff)
downloadgitlab-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.rb5
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'