aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/shared
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-10 10:02:18 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-10 10:18:16 +0200
commit35bf0c83c80f59ca79f4b84fac8700f17adeb22d (patch)
treea9b2106096d6ba04d7219051b17fd32cfbe6a885 /client/src/app/videos/shared
parent769d332177a5b02d5c2ffc134687d3b4ed65bae9 (diff)
downloadPeerTube-35bf0c83c80f59ca79f4b84fac8700f17adeb22d.tar.gz
PeerTube-35bf0c83c80f59ca79f4b84fac8700f17adeb22d.tar.zst
PeerTube-35bf0c83c80f59ca79f4b84fac8700f17adeb22d.zip
Video blacklist refractoring
Diffstat (limited to 'client/src/app/videos/shared')
-rw-r--r--client/src/app/videos/shared/video.service.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts
index 037c20416..fe7f9108d 100644
--- a/client/src/app/videos/shared/video.service.ts
+++ b/client/src/app/videos/shared/video.service.ts
@@ -122,12 +122,6 @@ export class VideoService {
122 .catch(res => this.restExtractor.handleError(res)) 122 .catch(res => this.restExtractor.handleError(res))
123 } 123 }
124 124
125 blacklistVideo (id: number) {
126 return this.authHttp.post(VideoService.BASE_VIDEO_URL + id + '/blacklist', {})
127 .map(this.restExtractor.extractDataBool)
128 .catch(res => this.restExtractor.handleError(res))
129 }
130
131 private videoPaginationToRestPagination (videoPagination: VideoPagination) { 125 private videoPaginationToRestPagination (videoPagination: VideoPagination) {
132 const start: number = (videoPagination.currentPage - 1) * videoPagination.itemsPerPage 126 const start: number = (videoPagination.currentPage - 1) * videoPagination.itemsPerPage
133 const count: number = videoPagination.itemsPerPage 127 const count: number = videoPagination.itemsPerPage