Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
352
Merge Requests
58
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
e3d1bb5f
Commit
e3d1bb5f
authored
25 minutes ago
by
Marcelo Rivera
Browse files
Options
Download
(fix): redirect to onboarding after registering if necessary
parent
93552d17
feat/onboarding
1 merge request
!674
Onboarding
Pipeline
#107838847
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/app/modules/auth/register.component.ts
View file @
e3d1bb5f
...
...
@@ -12,6 +12,7 @@ import { OnboardingService } from '../onboarding/onboarding.service';
import
{
MindsTitle
}
from
'
../../services/ux/title
'
;
import
{
FeaturesService
}
from
'
../../services/features.service
'
;
import
{
V2TopbarService
}
from
'
../../common/layout/v2-topbar/v2-topbar.service
'
;
import
{
OnboardingV2Service
}
from
'
../onboarding-v2/service/onboarding.service
'
;
@
Component
({
selector
:
'
m-register
'
,
...
...
@@ -46,6 +47,7 @@ export class RegisterComponent implements OnInit, OnDestroy {
public
navigation
:
NavigationService
,
private
featuresService
:
FeaturesService
,
private
topbarService
:
V2TopbarService
,
private
onboardingService
:
OnboardingV2Service
,
public
title
:
MindsTitle
)
{
if
(
this
.
session
.
isLoggedIn
())
{
...
...
@@ -88,6 +90,13 @@ export class RegisterComponent implements OnInit, OnDestroy {
return
;
}
if
(
this
.
featuresService
.
has
(
'
onboarding-december-2019
'
))
{
if
(
this
.
onboardingService
.
shouldShow
())
{
this
.
router
.
navigate
([
'
/onboarding
'
]);
}
return
;
}
this
.
router
.
navigate
([
'
/
'
+
this
.
session
.
getLoggedInUser
().
username
]);
}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment