From ac5c574ae3862033c15216ff8b2c3030d4086ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Thu, 5 Apr 2018 21:34:55 +0200 Subject: [PATCH] Adjust content listing --- .../fragments/content-list/content-list.component.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/components/fragments/content-list/content-list.component.ts b/src/app/components/fragments/content-list/content-list.component.ts index aacb8c1ba..d569cfb08 100644 --- a/src/app/components/fragments/content-list/content-list.component.ts +++ b/src/app/components/fragments/content-list/content-list.component.ts @@ -18,7 +18,7 @@ import { NotificationService } from '../../../services/util/notification.service styleUrls: ['./content-list.component.scss'] }) export class ContentListComponent implements OnInit { - // contents: Content[]; + contents = [ new ContentChoice('0', '1', @@ -67,6 +67,8 @@ export class ContentListComponent implements OnInit { ContentType: typeof ContentType = ContentType; + roomId: string; + constructor(private contentService: ContentService, private route: ActivatedRoute, private notificationService: NotificationService, @@ -74,9 +76,8 @@ export class ContentListComponent implements OnInit { } ngOnInit() { - this.route.params.subscribe(params => { -// this.getContents(params['roomId']); - }); + this.roomId = this.route.snapshot.paramMap.get('roomId'); + this.getContents(this.roomId); } getContents(roomId: string): void { -- GitLab