Redirect users to home before import a project in async mode

stable
David Barragán Merino 2017-02-27 18:12:41 +01:00
parent ebf160f61f
commit c86856be12
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class ImportProjectService extends taiga.Service
if result.status == 202 # Async mode if result.status == 202 # Async mode
title = @translate.instant('PROJECT.IMPORT.ASYNC_IN_PROGRESS_TITLE') title = @translate.instant('PROJECT.IMPORT.ASYNC_IN_PROGRESS_TITLE')
message = @translate.instant('PROJECT.IMPORT.ASYNC_IN_PROGRESS_MESSAGE') message = @translate.instant('PROJECT.IMPORT.ASYNC_IN_PROGRESS_MESSAGE')
@location.path(@tgNavUrls.resolve('home'))
@confirm.success(title, message) @confirm.success(title, message)
else # result.status == 201 # Sync mode else # result.status == 201 # Sync mode
ctx = {project: result.data.slug} ctx = {project: result.data.slug}