From 656dfe7cbc825cc68a251e344ea5a5fd3d49e831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Mon, 11 Feb 2019 16:41:24 +0100 Subject: [PATCH] Fix button routes --- .../creator/content-list/content-list.component.html | 5 ++--- .../creator/content-list/content-list.component.ts | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/components/creator/content-list/content-list.component.html b/src/app/components/creator/content-list/content-list.component.html index 41160ae3f..ff9b30135 100644 --- a/src/app/components/creator/content-list/content-list.component.html +++ b/src/app/components/creator/content-list/content-list.component.html @@ -20,15 +20,14 @@ </button> </mat-grid-tile> <mat-grid-tile> - <button class="actionButton" mat-icon-button color="primary" matTooltip="{{ 'room-page.present' | translate}}" - routerLink="/creator/room/{{ roomId }}/contents"> + <button class="actionButton" mat-icon-button color="primary" matTooltip="{{ 'room-page.present' | translate}}" (click)="notAvailable()"> <mat-icon class="actionIcon">school</mat-icon> </button> </mat-grid-tile> <mat-grid-tile> <button class="actionButton" mat-icon-button color="primary" matTooltip="{{ 'room-page.answer-statistics' | translate}}" - routerLink="/creator/room/{{ roomId }}/contents"> + routerLink="/creator/room/{{ roomId }}/statistics"> <mat-icon class="actionIcon">insert_chart</mat-icon> </button> </mat-grid-tile> diff --git a/src/app/components/creator/content-list/content-list.component.ts b/src/app/components/creator/content-list/content-list.component.ts index bc1453e3f..c5b0d7564 100644 --- a/src/app/components/creator/content-list/content-list.component.ts +++ b/src/app/components/creator/content-list/content-list.component.ts @@ -71,6 +71,10 @@ export class ContentListComponent implements OnInit { this.isLoading = false; } + notAvailable() { + this.notificationService.show('This feature has not been implemented yet!'); + } + findIndexOfSubject(subject: string): number { let index = -1; for (let i = 0; i < this.contents.length; i++) { -- GitLab