aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-08-23 18:09:21 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-08-23 18:09:21 +0200
commitf84a89f0e7e9595d2b6f6dd59181c01f562a4239 (patch)
treee22ae47801f2326882194223d11a8eee7ffed83b /client/src/app
parent327680c98496997ce3dbe28cbda674c84a2be7b2 (diff)
downloadPeerTube-f84a89f0e7e9595d2b6f6dd59181c01f562a4239.tar.gz
PeerTube-f84a89f0e7e9595d2b6f6dd59181c01f562a4239.tar.zst
PeerTube-f84a89f0e7e9595d2b6f6dd59181c01f562a4239.zip
Client: fix friend add input control when removing an input
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/admin/friends/friend-add/friend-add.component.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/admin/friends/friend-add/friend-add.component.ts b/client/src/app/admin/friends/friend-add/friend-add.component.ts
index 16cfd8a3a..2b2aceb8a 100644
--- a/client/src/app/admin/friends/friend-add/friend-add.component.ts
+++ b/client/src/app/admin/friends/friend-add/friend-add.component.ts
@@ -56,6 +56,8 @@ export class FriendAddComponent implements OnInit {
56 } 56 }
57 57
58 removeField(index: number) { 58 removeField(index: number) {
59 // Remove the last control
60 this.friendAddForm.removeControl(`url-${this.urls.length - 1}`);
59 this.urls.splice(index, 1); 61 this.urls.splice(index, 1);
60 } 62 }
61 63