mirror of https://github.com/Chocobozzz/PeerTube
Client: fix error alert
parent
00d6b0dda4
commit
da4971c11f
|
@ -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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ export class RequestStatsComponent implements OnInit, OnDestroy {
|
||||||
this.runInterval();
|
this.runInterval();
|
||||||
},
|
},
|
||||||
|
|
||||||
err => alert(err)
|
err => alert(err.text)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue