diff options
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comment.service.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment.service.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment.service.ts b/client/src/app/videos/+video-watch/comment/video-comment.service.ts index b8e5878c5..eb608a1a3 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment.service.ts +++ b/client/src/app/videos/+video-watch/comment/video-comment.service.ts | |||
@@ -48,11 +48,13 @@ export class VideoCommentService { | |||
48 | ) | 48 | ) |
49 | } | 49 | } |
50 | 50 | ||
51 | getVideoCommentThreads ( | 51 | getVideoCommentThreads (parameters: { |
52 | videoId: number | string, | 52 | videoId: number | string, |
53 | componentPagination: ComponentPagination, | 53 | componentPagination: ComponentPagination, |
54 | sort: VideoSortField | 54 | sort: VideoSortField |
55 | ): Observable<{ comments: VideoComment[], totalComments: number}> { | 55 | }): Observable<{ comments: VideoComment[], totalComments: number}> { |
56 | const { videoId, componentPagination, sort } = parameters | ||
57 | |||
56 | const pagination = this.restService.componentPaginationToRestPagination(componentPagination) | 58 | const pagination = this.restService.componentPaginationToRestPagination(componentPagination) |
57 | 59 | ||
58 | let params = new HttpParams() | 60 | let params = new HttpParams() |
@@ -67,7 +69,11 @@ export class VideoCommentService { | |||
67 | ) | 69 | ) |
68 | } | 70 | } |
69 | 71 | ||
70 | getVideoThreadComments (videoId: number | string, threadId: number): Observable<VideoCommentThreadTree> { | 72 | getVideoThreadComments (parameters: { |
73 | videoId: number | string, | ||
74 | threadId: number | ||
75 | }): Observable<VideoCommentThreadTree> { | ||
76 | const { videoId, threadId } = parameters | ||
71 | const url = `${VideoCommentService.BASE_VIDEO_URL + videoId}/comment-threads/${threadId}` | 77 | const url = `${VideoCommentService.BASE_VIDEO_URL + videoId}/comment-threads/${threadId}` |
72 | 78 | ||
73 | return this.authHttp | 79 | return this.authHttp |