Client: remove makeFriend from friend-list (in friend-add now)
This commit is contained in:
parent
beacf6993c
commit
96b0c2bf70
|
@ -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() {
|
quitFriends() {
|
||||||
if (!confirm('Are you sure?')) return;
|
if (!confirm('Are you sure?')) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue