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 41160ae3fd8f6c88c916200a4d74ba4dcbbfe005..ff9b3013530bb8b885206e736564edaf1c825bff 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 bc1453e3fbe0b9100f71e5c8c1d95aa545052849..c5b0d7564ca1df5a1098812b48ad5e58a88ffe89 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++) {