From 1af26816e09c008ea2bd74f24c375f26d9183cae Mon Sep 17 00:00:00 2001 From: ABNER SILVA DE OLIVEIRA Date: Fri, 27 May 2016 10:21:42 -0300 Subject: [PATCH] fixed after submit a new comment was erroneously put the comment in all lists --- src/app/article/comment/comments.component.ts | 10 ---------- 1 file changed, 0 insertions(+), 10 deletions(-) diff --git a/src/app/article/comment/comments.component.ts b/src/app/article/comment/comments.component.ts index c342b50..1e510d9 100644 --- a/src/app/article/comment/comments.component.ts +++ b/src/app/article/comment/comments.component.ts @@ -30,16 +30,6 @@ export class CommentsComponent { } else { this.loadNextPage(); } - this.commentService.subscribeToModelAdded((comment: noosfero.Comment) => { - if (comment.source_id === this.article.id) { - this.commentAdded(comment); - } - }); - this.commentService.subscribeToModelRemoved((comment: noosfero.Comment) => { - if (comment.source_id === this.article.id) { - this.commentRemoved(comment); - } - }); } commentAdded(comment: noosfero.CommentViewModel): void { -- libgit2 0.21.2