]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Client: remove makeFriend from friend-list (in friend-add now)
authorChocobozzz <florian.bigard@gmail.com>
Sun, 21 Aug 2016 09:36:43 +0000 (11:36 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Sun, 21 Aug 2016 09:36:43 +0000 (11:36 +0200)
client/src/app/admin/friends/friend-list/friend-list.component.ts

index aa92c1b1e26752211ca69ca10bd89f48d6b49b33..379d44c975a5d83055577267cab1e214a9d1ec7c 100644 (file)
@@ -22,19 +22,6 @@ export class FriendListComponent implements OnInit {
     );
   }
 
-  makeFriends() {
-    this.friendService.makeFriends().subscribe(
-      status => {
-        if (status === 409) {
-          alert('Already made friends!');
-        } else {
-          alert('Made friends!');
-        }
-      },
-      error => alert(error)
-    );
-  }
-
   quitFriends() {
     if (!confirm('Are you sure?')) return;