redirect to prod key

This commit is contained in:
Drew Ansbacher
2021-11-03 15:47:40 -06:00
committed by Aiden McClelland
parent ffd8f7b278
commit 21a0ee7fad
3 changed files with 6 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ import { PreloadAllModules, RouterModule, Routes } from '@angular/router'
import { NavGuard } from './guards/nav-guard'
const routes: Routes = [
{ path: '', redirectTo: '/product-key', pathMatch: 'full' },
{
path: 'init',
loadChildren: () => import('./pages/init/init.module').then( m => m.InitPageModule),

View File

@@ -13,8 +13,12 @@ export class NavGuard implements CanActivate {
canActivate (): boolean {
if (this.httpService.productKey) {
console.log('here here here')
console.log('here here here')
return true
} else {
console.log('here here here')
this.router.navigateByUrl('product-key')
return false
}

View File

@@ -18,8 +18,4 @@ import { SuccessPageRoutingModule } from './success-routing.module'
],
declarations: [SuccessPage],
})
export class SuccessPageModule {
constructor () {
console.log('SuccessModule loaded.')
}
}
export class SuccessPageModule { }