Skip to content

Commit

Permalink
Merge pull request #2340 from ORCID/remove-old-togglz
Browse files Browse the repository at this point in the history
Remove old togglz
  • Loading branch information
leomendoza123 authored Sep 2, 2024
2 parents f982511 + e1a332b commit 02c55a0
Show file tree
Hide file tree
Showing 44 changed files with 493 additions and 1,414 deletions.
11 changes: 2 additions & 9 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { LanguageGuard } from './guards/language.guard'
import { ThirdPartySigninCompletedGuard } from './guards/third-party-signin-completed.guard'
import { TwoFactorSigninGuard } from './guards/two-factor-signin.guard'
import { AuthenticatedNoDelegatorGuard } from './guards/authenticated-no-delagator.guard'
import { RegisterTogglGuard } from './guards/register-toggl.guard'

const routes: Routes = [
{
Expand Down Expand Up @@ -90,15 +89,9 @@ const routes: Routes = [
},
{
path: ApplicationRoutes.register,
canMatch: [RegisterTogglGuard],
canActivateChild: [LanguageGuard, RegisterGuard],
loadChildren: () => {
return localStorage.getItem('REGISTRATION_2_0') !== 'enabled'
? import('./register/register.module').then(
(m) => m.RegisterModuleLegacy
)
: import('./register2/register.module').then((m) => m.Register2Module)
},
loadChildren: () =>
import('./register2/register.module').then((m) => m.Register2Module),
},
{
path: ApplicationRoutes.search,
Expand Down
Loading

0 comments on commit 02c55a0

Please sign in to comment.