aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-09-26 22:54:34 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-09-26 22:54:34 +0200
commitda4971c11f16b541804b5071d543166cd3954a98 (patch)
treeacfe746bb065839ba3e42c2ada47fb6ff9b895f1 /client
parent00d6b0dda4b1964ab11127851c0fc7106cc0f912 (diff)
downloadPeerTube-da4971c11f16b541804b5071d543166cd3954a98.tar.gz
PeerTube-da4971c11f16b541804b5071d543166cd3954a98.tar.zst
PeerTube-da4971c11f16b541804b5071d543166cd3954a98.zip
Client: fix error alert
Diffstat (limited to 'client')
-rw-r--r--client/src/app/admin/friends/friend-add/friend-add.component.ts2
-rw-r--r--client/src/app/admin/friends/friend-list/friend-list.component.ts4
-rw-r--r--client/src/app/admin/requests/request-stats/request-stats.component.ts2
-rw-r--r--client/src/app/videos/video-list/video-miniature.component.ts2
4 files changed, 5 insertions, 5 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 7aab82b97..64165a9a5 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
@@ -87,7 +87,7 @@ export class FriendAddComponent implements OnInit {
87 this.router.navigate([ '/admin/friends/list' ]); 87 this.router.navigate([ '/admin/friends/list' ]);
88 // } 88 // }
89 }, 89 },
90 error => alert(error) 90 error => alert(error.text)
91 ); 91 );
92 } 92 }
93 93
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.ts
index afbb48c1c..88c4800ee 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
@@ -24,7 +24,7 @@ export class FriendListComponent implements OnInit {
24 alert('Quit friends!'); 24 alert('Quit friends!');
25 this.getFriends(); 25 this.getFriends();
26 }, 26 },
27 error => alert(error) 27 error => alert(error.text)
28 ); 28 );
29 } 29 }
30 30
@@ -32,7 +32,7 @@ export class FriendListComponent implements OnInit {
32 this.friendService.getFriends().subscribe( 32 this.friendService.getFriends().subscribe(
33 friends => this.friends = friends, 33 friends => this.friends = friends,
34 34
35 err => alert(err) 35 err => alert(err.text)
36 ); 36 );
37 } 37 }
38} 38}
diff --git a/client/src/app/admin/requests/request-stats/request-stats.component.ts b/client/src/app/admin/requests/request-stats/request-stats.component.ts
index 6a9739bbf..4b0844574 100644
--- a/client/src/app/admin/requests/request-stats/request-stats.component.ts
+++ b/client/src/app/admin/requests/request-stats/request-stats.component.ts
@@ -32,7 +32,7 @@ export class RequestStatsComponent implements OnInit, OnDestroy {
32 this.runInterval(); 32 this.runInterval();
33 }, 33 },
34 34
35 err => alert(err) 35 err => alert(err.text)
36 ); 36 );
37 } 37 }
38 38
diff --git a/client/src/app/videos/video-list/video-miniature.component.ts b/client/src/app/videos/video-list/video-miniature.component.ts
index f807d17ac..398d2db75 100644
--- a/client/src/app/videos/video-list/video-miniature.component.ts
+++ b/client/src/app/videos/video-list/video-miniature.component.ts
@@ -36,7 +36,7 @@ export class VideoMiniatureComponent {
36 if (confirm('Do you really want to remove this video?')) { 36 if (confirm('Do you really want to remove this video?')) {
37 this.videoService.removeVideo(id).subscribe( 37 this.videoService.removeVideo(id).subscribe(
38 status => this.removed.emit(true), 38 status => this.removed.emit(true),
39 error => alert(error) 39 error => alert(error.text)
40 ); 40 );
41 } 41 }
42 } 42 }