From 3d533403db11a89c7f91a3f975cb19ed005dcb0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Mon, 15 Oct 2018 14:50:15 +0200
Subject: [PATCH] Add content-presentation-mode for creator

---
 src/app/app-routing.module.ts                               | 6 ++++++
 .../fragments/content-list/content-list.component.html      | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 872d0538c..d2a4669f3 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -63,6 +63,12 @@ const routes: Routes = [
     canActivate: [AuthenticationGuard],
     data: { roles: [UserRole.CREATOR] }
   },
+  {
+    path: 'creator/room/:roomId/contents',
+    component: ContentCarouselPageComponent,
+    canActivate: [AuthenticationGuard],
+    data: { roles: [UserRole.CREATOR] }
+  },
   {
     path: 'creator/room/:roomId/:contentGroup',
     component: ContentListComponent,
diff --git a/src/app/components/fragments/content-list/content-list.component.html b/src/app/components/fragments/content-list/content-list.component.html
index 18308555c..23ed377f0 100644
--- a/src/app/components/fragments/content-list/content-list.component.html
+++ b/src/app/components/fragments/content-list/content-list.component.html
@@ -4,7 +4,7 @@
       <h2>Fragen</h2>
       <mat-card-actions>
         <button mat-fab color="primary" matTooltip="Fragen präsentieren"
-                routerLink="/creator/room/{{ room.shortId }}/create-content">
+                routerLink="/creator/room/{{ room.shortId }}/contents">
           <mat-icon>school</mat-icon>
         </button>
         <button mat-fab color="primary" matTooltip="Erstelle neue Frage"
-- 
GitLab