From ac269e93b88ef017586fa937aaf7ba9f965bd287 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Mon, 18 Mar 2019 09:18:53 +0100
Subject: [PATCH] Change route of creators comment buttons to
 comment-creator-page-component

---
 .../comment-creator-page.component.html                     | 6 +++---
 .../comment-creator-page.component.scss                     | 4 ++++
 src/app/components/creator/creator-routing.module.ts        | 4 ++--
 3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/app/components/creator/comment-creator-page/comment-creator-page.component.html b/src/app/components/creator/comment-creator-page/comment-creator-page.component.html
index 2eb33ef8b..cb304da36 100644
--- a/src/app/components/creator/comment-creator-page/comment-creator-page.component.html
+++ b/src/app/components/creator/comment-creator-page/comment-creator-page.component.html
@@ -1,3 +1,3 @@
-<p>
-  comment-creator-page works!
-</p>
+<div fxLayout="row" fxLayoutAlign="center">
+  <app-comment-list></app-comment-list>
+</div>
diff --git a/src/app/components/creator/comment-creator-page/comment-creator-page.component.scss b/src/app/components/creator/comment-creator-page/comment-creator-page.component.scss
index e69de29bb..501394eb4 100644
--- a/src/app/components/creator/comment-creator-page/comment-creator-page.component.scss
+++ b/src/app/components/creator/comment-creator-page/comment-creator-page.component.scss
@@ -0,0 +1,4 @@
+app-comment-list {
+  width: 100%;
+  max-width: 800px;
+}
diff --git a/src/app/components/creator/creator-routing.module.ts b/src/app/components/creator/creator-routing.module.ts
index 8f5d6276a..37cc87063 100644
--- a/src/app/components/creator/creator-routing.module.ts
+++ b/src/app/components/creator/creator-routing.module.ts
@@ -6,11 +6,11 @@ import { UserRole } from '../../models/user-roles.enum';
 import { RoomCreatorPageComponent } from './room-creator-page/room-creator-page.component';
 import { ContentCreatePageComponent } from './content-create-page/content-create-page.component';
 import { StatisticsPageComponent } from '../shared/statistics-page/statistics-page.component';
-import { CommentListComponent } from '../shared/comment-list/comment-list.component';
 import { FeedbackBarometerPageComponent } from '../shared/feedback-barometer-page/feedback-barometer-page.component';
 import { ContentListComponent } from './content-list/content-list.component';
 import { StatisticComponent } from '../shared/statistic/statistic.component';
 import { ContentPresentationComponent } from './content-presentation/content-presentation.component';
+import { CommentCreatorPageComponent } from './comment-creator-page/comment-creator-page.component';
 
 const routes: Routes = [
   {
@@ -45,7 +45,7 @@ const routes: Routes = [
   },
   {
     path: 'room/:roomId/comments',
-    component: CommentListComponent,
+    component: CommentCreatorPageComponent,
     canActivate: [AuthenticationGuard],
     data: { roles: [UserRole.CREATOR] }
   },
-- 
GitLab