]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/admin/friends/friend-add/friend-add.component.ts
Do not wait the make friends process ends to send a response to the
[github/Chocobozzz/PeerTube.git] / client / src / app / admin / friends / friend-add / friend-add.component.ts
index 07888a7819f9cb9b2697f9e6437489dbc73b4c7c..ffc499b92bb65ccc2ecd9c90fa945474e886934f 100644 (file)
@@ -61,7 +61,8 @@ export class FriendAddComponent {
         if (status === 409) {
           alert('Already made friends!');
         } else {
-          alert('Made friends!');
+          alert('Make friends request sent!');
+          this.router.navigate([ '/admin/friends/list' ]);
         }
       },
       error => alert(error)