aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-12 11:05:11 +0200
committerChocobozzz <me@florianbigard.com>2022-08-16 10:33:27 +0200
commit0e6cd1c00f71554fe7375a96db693a6983951ba6 (patch)
treebe9b049e047895c88c561202377f6c5e64ae40df /client/src/app
parent045224d5eb6a41081186c4040bab1570b9d9ad65 (diff)
downloadPeerTube-0e6cd1c00f71554fe7375a96db693a6983951ba6.tar.gz
PeerTube-0e6cd1c00f71554fe7375a96db693a6983951ba6.tar.zst
PeerTube-0e6cd1c00f71554fe7375a96db693a6983951ba6.zip
Add ability to list comments on local videos
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+admin/overview/comments/video-comment-list.component.ts4
-rw-r--r--client/src/app/shared/shared-video-comment/video-comment.service.ts4
2 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/+admin/overview/comments/video-comment-list.component.ts b/client/src/app/+admin/overview/comments/video-comment-list.component.ts
index f01a1629b..cfe40b92a 100644
--- a/client/src/app/+admin/overview/comments/video-comment-list.component.ts
+++ b/client/src/app/+admin/overview/comments/video-comment-list.component.ts
@@ -54,6 +54,10 @@ export class VideoCommentListComponent extends RestTable implements OnInit {
54 { 54 {
55 value: 'local:false', 55 value: 'local:false',
56 label: $localize`Remote comments` 56 label: $localize`Remote comments`
57 },
58 {
59 value: 'localVideo:true',
60 label: $localize`Comments on local videos`
57 } 61 }
58 ] 62 ]
59 } 63 }
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 8cd94643a..8d2deedf7 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
@@ -190,6 +190,10 @@ export class VideoCommentService {
190 prefix: 'local:', 190 prefix: 'local:',
191 isBoolean: true 191 isBoolean: true
192 }, 192 },
193 onLocalVideo: {
194 prefix: 'localVideo:',
195 isBoolean: true
196 },
193 197
194 searchAccount: { prefix: 'account:' }, 198 searchAccount: { prefix: 'account:' },
195 searchVideo: { prefix: 'video:' } 199 searchVideo: { prefix: 'video:' }