ActivityPub-federated video streaming platform using P2P directly in your web browser
Client: refresh friends list after quitting them
Chocobozzz93c462b77170
diff --git a/client/src/app/admin/friends/friend-list/friend-list.component.ts b/client/src/app/admin/friends/friend-list/friend-list.component.tsindex 379d44c975..38d4799a6e 100644--- a/client/src/app/admin/friends/friend-list/friend-list.component.ts+++ b/client/src/app/admin/friends/friend-list/friend-list.component.ts@@ -15,11 +15,7 @@ export class FriendListComponent implements OnInit {constructor(private friendService: FriendService) { }ngOnInit() {- this.friendService.getFriends().subscribe(- friends => this.friends = friends,-- err => alert(err)- );+ this.getFriends();}quitFriends() {@@ -28,8 +24,17 @@ export class FriendListComponent implements OnInit {this.friendService.quitFriends().subscribe(status => {alert('Quit friends!');+ this.getFriends();},error => alert(error));}++ private getFriends() {+ this.friendService.getFriends().subscribe(+ friends => this.friends = friends,++ err => alert(err)+ );+ }}