Commit 0dd5d583 authored by Lukas Mauß's avatar Lukas Mauß

Add notification for comment freeze status

parent ec7474b5
......@@ -315,6 +315,9 @@ export class CommentListComponent implements OnInit {
pauseCommentStream() {
this.freeze = true;
this.commentStream.unsubscribe();
this.translateService.get('comment-list.comment-stream-stopped').subscribe(msg => {
this.notificationService.show(msg);
});
}
playCommentStream() {
......@@ -325,6 +328,9 @@ export class CommentListComponent implements OnInit {
this.getComments();
});
this.subscribeCommentStream();
this.translateService.get('comment-list.comment-stream-started').subscribe(msg => {
this.notificationService.show(msg);
});
}
subscribeCommentStream() {
......
......@@ -18,6 +18,8 @@
"add-comment": "Frage stellen",
"pause-comments": "Pausiere den Kommentar-Stream",
"play-comments": "Starte den Kommentar-Stream",
"comment-stream-stopped": "Der Kommentar-Stream wurde gestoppt.",
"comment-stream-started": "Der Kommentar-Stream wurde gestartet.",
"comment-sent": "Die Frage wurde veröffentlicht.",
"comment-deleted": "Die Frage wurde gelöscht.",
"correct": "Fragen, die vom Dozenten als richtig markiert wurden",
......
......@@ -18,6 +18,8 @@
"add-comment": "Ask a question!",
"pause-comments": "Pause comment-stream",
"play-comments": "Start comment-stream",
"comment-stream-stopped": "Comment-stream has been stopped.",
"comment-stream-started": "Comment-stream has been started.",
"comment-sent": "The question has been published.",
"comment-deleted": "The question has been deleted.",
"correct": "Marked as correct by you",
......
......@@ -28,6 +28,8 @@
"add-comment": "Stell deine Frage!",
"pause-comments": "Pausiere den Kommentar-Stream",
"play-comments": "Starte den Kommentar-Stream",
"comment-stream-stopped": "Der Kommentar-Stream wurde gestoppt.",
"comment-stream-started": "Der Kommentar-Stream wurde gestartet.",
"comment-sent": "Die Frage wurde veröffentlicht.",
"comment-sent-to-moderator": "Die Frage wird nun von einem Moderator überprüft.",
"comment-deleted": "Die Frage wurde gelöscht.",
......
......@@ -28,6 +28,8 @@
"add-comment": "Ask a question!",
"pause-comments": "Pause comment-stream",
"play-comments": "Start comment-stream",
"comment-stream-stopped": "Comment-stream has been stopped.",
"comment-stream-started": "Comment-stream has been started.",
"comment-sent": "The question has been published.",
"comment-sent-to-moderator": "The question will be reviewed by a moderator.",
"comment-deleted": "The question has been deleted.",
......
Markdown is supported
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