diff --git a/src/app/components/participant/comment-create-page/comment-create-page.component.ts b/src/app/components/participant/comment-create-page/comment-create-page.component.ts index 635758f1425390ca2f493b787fb681b543f85a2b..cc9a856544b82c240dd9b5a82583696266feb1dc 100644 --- a/src/app/components/participant/comment-create-page/comment-create-page.component.ts +++ b/src/app/components/participant/comment-create-page/comment-create-page.component.ts @@ -1,10 +1,8 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; -import { Location } from '@angular/common'; import { FormControl, Validators } from '@angular/forms'; import { TranslateService } from '@ngx-translate/core'; import { Comment } from '../../../models/comment'; -import { RoomService } from '../../../services/http/room.service'; import { CommentService } from '../../../services/http/comment.service'; import { NotificationService } from '../../../services/util/notification.service'; import { AuthenticationService } from '../../../services/http/authentication.service'; @@ -29,9 +27,7 @@ export class CommentCreatePageComponent implements OnInit { constructor( protected authenticationService: AuthenticationService, private route: ActivatedRoute, - private roomService: RoomService, private commentService: CommentService, - private location: Location, private notification: NotificationService, private translationService: TranslateService) { } @@ -76,8 +72,4 @@ export class CommentCreatePageComponent implements OnInit { this.notification.show(`Comment '${subject}' successfully created.`); }); } - - goBack(): void { - this.location.back(); - } }