Project

General

Profile

« Previous | Next » 

Revision 58109

Added a join page which will be the page users see when they login and they don't have a repository registered

View differences:

app-routing.module.ts
2 2
import { NgModule } from '@angular/core';
3 3
import { LandingComponent } from './pages/landing/landing.component';
4 4
import { AuthGuardService } from './services/auth-guard.service';
5
import { DashboardComponent } from './pages/repository/dashboard/dashboard.component';
6 5
import { ForbiddenPageComponent } from './shared/reusablecomponents/403-forbidden-page.component';
7
import {EmptyPageComponent} from "./pages/emptypage/empty-page.component";
6
import { EmptyPageComponent } from "./pages/emptypage/empty-page.component";
7
import { JoinComponent } from "./pages/join/join.component";
8 8

  
9 9
const appRoutes: Routes = [
10 10
  {
......
17 17
    component: LandingComponent
18 18
  },
19 19
  {
20
    path: 'join',
21
    component: JoinComponent,
22
    canActivate: [AuthGuardService]
23
  },
24
  {
20 25
    path: 'emptyPage',
21 26
    component: EmptyPageComponent,
22 27
    canActivate: [AuthGuardService]

Also available in: Unified diff