update comments
This commit is contained in:
parent
1f427fd67e
commit
4251f08b11
@ -24,11 +24,11 @@ export class UiComments implements OnInit {
|
||||
|
||||
refresh(): void {
|
||||
if (this.parent) {
|
||||
this.commentService.getParentPages(this.target, this.parent, 0 , 2).subscribe((data) => {
|
||||
this.commentService.getParent(this.target, this.parent).subscribe((data) => {
|
||||
this.comments = data;
|
||||
})
|
||||
} else {
|
||||
this.commentService.getPages(this.target, 0, 2).subscribe((data) => {
|
||||
this.commentService.get(this.target).subscribe((data) => {
|
||||
this.comments = data;
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user