Skip to content
Snippets Groups Projects
Commit 3c49ba5b authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Clean up comment-create-component

parent d75534cc
No related merge requests found
import { Component, OnInit, ViewChild } from '@angular/core'; import { Component, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute } from '@angular/router'; import { ActivatedRoute } from '@angular/router';
import { Location } from '@angular/common';
import { FormControl, Validators } from '@angular/forms'; import { FormControl, Validators } from '@angular/forms';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { Comment } from '../../../models/comment'; import { Comment } from '../../../models/comment';
import { RoomService } from '../../../services/http/room.service';
import { CommentService } from '../../../services/http/comment.service'; import { CommentService } from '../../../services/http/comment.service';
import { NotificationService } from '../../../services/util/notification.service'; import { NotificationService } from '../../../services/util/notification.service';
import { AuthenticationService } from '../../../services/http/authentication.service'; import { AuthenticationService } from '../../../services/http/authentication.service';
...@@ -29,9 +27,7 @@ export class CommentCreatePageComponent implements OnInit { ...@@ -29,9 +27,7 @@ export class CommentCreatePageComponent implements OnInit {
constructor( constructor(
protected authenticationService: AuthenticationService, protected authenticationService: AuthenticationService,
private route: ActivatedRoute, private route: ActivatedRoute,
private roomService: RoomService,
private commentService: CommentService, private commentService: CommentService,
private location: Location,
private notification: NotificationService, private notification: NotificationService,
private translationService: TranslateService) { } private translationService: TranslateService) { }
...@@ -76,8 +72,4 @@ export class CommentCreatePageComponent implements OnInit { ...@@ -76,8 +72,4 @@ export class CommentCreatePageComponent implements OnInit {
this.notification.show(`Comment '${subject}' successfully created.`); this.notification.show(`Comment '${subject}' successfully created.`);
}); });
} }
goBack(): void {
this.location.back();
}
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment