From 3c49ba5b2c8e054a2e67f0c8ce7fa883c9f83e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Mon, 18 Mar 2019 09:15:13 +0100 Subject: [PATCH] Clean up comment-create-component --- .../comment-create-page/comment-create-page.component.ts | 8 -------- 1 file changed, 8 deletions(-) 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 635758f14..cc9a85654 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(); - } } -- GitLab