diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-16 11:55:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-16 13:48:58 +0100 |
commit | f1273314593a4a7dc7ec9594ce0c6c3ae8f62b34 (patch) | |
tree | cf1f3949e64a24a820833950d7b2bbf9ccd40013 /client/src/app/shared/shared-video-comment/video-comment.service.ts | |
parent | 0f8d00e3144060270d7fe603865fccaf18649c47 (diff) | |
download | PeerTube-f1273314593a4a7dc7ec9594ce0c6c3ae8f62b34.tar.gz PeerTube-f1273314593a4a7dc7ec9594ce0c6c3ae8f62b34.tar.zst PeerTube-f1273314593a4a7dc7ec9594ce0c6c3ae8f62b34.zip |
Add admin view to manage comments
Diffstat (limited to 'client/src/app/shared/shared-video-comment/video-comment.service.ts')
-rw-r--r-- | client/src/app/shared/shared-video-comment/video-comment.service.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-video-comment/video-comment.service.ts b/client/src/app/shared/shared-video-comment/video-comment.service.ts index e318e069d..1ab996a76 100644 --- a/client/src/app/shared/shared-video-comment/video-comment.service.ts +++ b/client/src/app/shared/shared-video-comment/video-comment.service.ts | |||
@@ -19,8 +19,9 @@ import { SortMeta } from 'primeng/api' | |||
19 | 19 | ||
20 | @Injectable() | 20 | @Injectable() |
21 | export class VideoCommentService { | 21 | export class VideoCommentService { |
22 | static BASE_FEEDS_URL = environment.apiUrl + '/feeds/video-comments.' | ||
23 | |||
22 | private static BASE_VIDEO_URL = environment.apiUrl + '/api/v1/videos/' | 24 | private static BASE_VIDEO_URL = environment.apiUrl + '/api/v1/videos/' |
23 | private static BASE_FEEDS_URL = environment.apiUrl + '/feeds/video-comments.' | ||
24 | 25 | ||
25 | constructor ( | 26 | constructor ( |
26 | private authHttp: HttpClient, | 27 | private authHttp: HttpClient, |
@@ -56,7 +57,7 @@ export class VideoCommentService { | |||
56 | search?: string | 57 | search?: string |
57 | }): Observable<ResultList<VideoCommentAdmin>> { | 58 | }): Observable<ResultList<VideoCommentAdmin>> { |
58 | const { pagination, sort, search } = options | 59 | const { pagination, sort, search } = options |
59 | const url = VideoCommentService.BASE_VIDEO_URL + '/comments' | 60 | const url = VideoCommentService.BASE_VIDEO_URL + 'comments' |
60 | 61 | ||
61 | let params = new HttpParams() | 62 | let params = new HttpParams() |
62 | params = this.restService.addRestGetParams(params, pagination, sort) | 63 | params = this.restService.addRestGetParams(params, pagination, sort) |
@@ -172,7 +173,7 @@ export class VideoCommentService { | |||
172 | 173 | ||
173 | private buildParamsFromSearch (search: string, params: HttpParams) { | 174 | private buildParamsFromSearch (search: string, params: HttpParams) { |
174 | const filters = this.restService.parseQueryStringFilter(search, { | 175 | const filters = this.restService.parseQueryStringFilter(search, { |
175 | state: { | 176 | isLocal: { |
176 | prefix: 'local:', | 177 | prefix: 'local:', |
177 | isBoolean: true, | 178 | isBoolean: true, |
178 | handler: v => { | 179 | handler: v => { |