Commit 1af26816e09c008ea2bd74f24c375f26d9183cae
1 parent
9dc72ea1
Exists in
master
and in
15 other branches
fixed after submit a new comment was erroneously put the comment in all lists
Showing
1 changed file
with
0 additions
and
10 deletions
Show diff stats
src/app/article/comment/comments.component.ts
... | ... | @@ -30,16 +30,6 @@ export class CommentsComponent { |
30 | 30 | } else { |
31 | 31 | this.loadNextPage(); |
32 | 32 | } |
33 | - this.commentService.subscribeToModelAdded((comment: noosfero.Comment) => { | |
34 | - if (comment.source_id === this.article.id) { | |
35 | - this.commentAdded(comment); | |
36 | - } | |
37 | - }); | |
38 | - this.commentService.subscribeToModelRemoved((comment: noosfero.Comment) => { | |
39 | - if (comment.source_id === this.article.id) { | |
40 | - this.commentRemoved(comment); | |
41 | - } | |
42 | - }); | |
43 | 33 | } |
44 | 34 | |
45 | 35 | commentAdded(comment: noosfero.CommentViewModel): void { | ... | ... |