Client: fix error alert

pull/10/head
Chocobozzz 2016-09-26 22:54:34 +02:00
parent 00d6b0dda4
commit da4971c11f
4 changed files with 5 additions and 5 deletions

View File

@ -87,7 +87,7 @@ export class FriendAddComponent implements OnInit {
this.router.navigate([ '/admin/friends/list' ]); this.router.navigate([ '/admin/friends/list' ]);
// } // }
}, },
error => alert(error) error => alert(error.text)
); );
} }

View File

@ -24,7 +24,7 @@ export class FriendListComponent implements OnInit {
alert('Quit friends!'); alert('Quit friends!');
this.getFriends(); this.getFriends();
}, },
error => alert(error) error => alert(error.text)
); );
} }
@ -32,7 +32,7 @@ export class FriendListComponent implements OnInit {
this.friendService.getFriends().subscribe( this.friendService.getFriends().subscribe(
friends => this.friends = friends, friends => this.friends = friends,
err => alert(err) err => alert(err.text)
); );
} }
} }

View File

@ -32,7 +32,7 @@ export class RequestStatsComponent implements OnInit, OnDestroy {
this.runInterval(); this.runInterval();
}, },
err => alert(err) err => alert(err.text)
); );
} }

View File

@ -36,7 +36,7 @@ export class VideoMiniatureComponent {
if (confirm('Do you really want to remove this video?')) { if (confirm('Do you really want to remove this video?')) {
this.videoService.removeVideo(id).subscribe( this.videoService.removeVideo(id).subscribe(
status => this.removed.emit(true), status => this.removed.emit(true),
error => alert(error) error => alert(error.text)
); );
} }
} }