Fixes :notice after project is created
When projects were created in projects_controller create.js.haml passed notice as url parameter and therefore notice was not displayed in the page after redirect to the project page
This commit is contained in:
parent
cc5391515a
commit
8c5b79a923
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
- if @project.saved?
|
||||
:plain
|
||||
location.href = "#{project_path(@project, notice: 'Project was successfully created.')}";
|
||||
location.href = "#{project_path(@project)}";
|
||||
- else
|
||||
- if @project.git_error?
|
||||
location.href = "#{errors_githost_path}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue