diff --git a/SessionCompanion/SessionCompanion/ClientApp/src/app.routing.ts b/SessionCompanion/SessionCompanion/ClientApp/src/app.routing.ts index 344501c..a2f9ceb 100644 --- a/SessionCompanion/SessionCompanion/ClientApp/src/app.routing.ts +++ b/SessionCompanion/SessionCompanion/ClientApp/src/app.routing.ts @@ -3,6 +3,7 @@ import { SelectRoleComponent } from './app/components/select-role/select-role.co import { SignInComponent } from './app/components/sign-in/sign-in.component'; import { RegistrationComponent } from './app/components/registration/registration.component'; import {GameMasterDashboardComponent} from './app/components/game-master-dashboard/game-master-dashboard.component'; +import {PlayerDashboardComponent} from './app/components/player-dashboard/player-dashboard.component'; const routes: Routes = [ { @@ -24,6 +25,11 @@ const routes: Routes = [ path: 'gamemaster', component: GameMasterDashboardComponent, pathMatch: 'full' + }, + { + path: 'player', + component: PlayerDashboardComponent, + pathMatch: 'full' } ]; diff --git a/SessionCompanion/SessionCompanion/ClientApp/src/app/app.module.ts b/SessionCompanion/SessionCompanion/ClientApp/src/app/app.module.ts index 5587ba6..c0eccab 100644 --- a/SessionCompanion/SessionCompanion/ClientApp/src/app/app.module.ts +++ b/SessionCompanion/SessionCompanion/ClientApp/src/app/app.module.ts @@ -9,6 +9,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { SignInComponent } from './components/sign-in/sign-in.component'; import { RegistrationComponent } from './components/registration/registration.component'; import { GameMasterDashboardComponent} from './components/game-master-dashboard/game-master-dashboard.component'; +import {PlayerDashboardComponent} from './components/player-dashboard/player-dashboard.component'; import { MatCardModule, MatTabsModule, @@ -18,6 +19,7 @@ import { MatCheckboxModule, MatIconModule, MatSidenavModule, MatToolbarModule, MatListModule } from '@angular/material'; +import {UserService} from '../services/user.service'; @NgModule({ declarations: [ @@ -26,6 +28,7 @@ import { SignInComponent, RegistrationComponent, GameMasterDashboardComponent, + PlayerDashboardComponent ], imports: [ BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }), @@ -45,7 +48,9 @@ BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }), MatToolbarModule, MatListModule, ], - providers: [], + providers: [ + UserService + ], bootstrap: [AppComponent] }) export class AppModule { } diff --git a/SessionCompanion/SessionCompanion/ClientApp/src/app/components/registration/registration.component.html b/SessionCompanion/SessionCompanion/ClientApp/src/app/components/registration/registration.component.html index 1f23ca5..4c1caa0 100644 --- a/SessionCompanion/SessionCompanion/ClientApp/src/app/components/registration/registration.component.html +++ b/SessionCompanion/SessionCompanion/ClientApp/src/app/components/registration/registration.component.html @@ -2,11 +2,11 @@
arrow_back
Create an Account
- + - - @@ -55,4 +55,4 @@ arrow_forward
- \ No newline at end of file + diff --git a/SessionCompanion/SessionCompanion/ClientApp/src/app/components/sign-in/sign-in.component.html b/SessionCompanion/SessionCompanion/ClientApp/src/app/components/sign-in/sign-in.component.html index efeb015..d9feec4 100644 --- a/SessionCompanion/SessionCompanion/ClientApp/src/app/components/sign-in/sign-in.component.html +++ b/SessionCompanion/SessionCompanion/ClientApp/src/app/components/sign-in/sign-in.component.html @@ -6,7 +6,7 @@ - + + {{apiErrorMessage}} +