aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts')
-rw-r--r--client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts
index e72ab5348..7b3691332 100644
--- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts
+++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts
@@ -3,7 +3,7 @@ import { SortMeta } from 'primeng/api'
3import { Notifier, ServerService } from '@app/core' 3import { Notifier, ServerService } from '@app/core'
4import { ConfirmService } from '../../../core' 4import { ConfirmService } from '../../../core'
5import { RestPagination, RestTable, VideoBlockService } from '../../../shared' 5import { RestPagination, RestTable, VideoBlockService } from '../../../shared'
6import { VideoBlocklist, VideoBlockType } from '../../../../../../shared' 6import { VideoBlacklist, VideoBlacklistType } from '../../../../../../shared'
7import { I18n } from '@ngx-translate/i18n-polyfill' 7import { I18n } from '@ngx-translate/i18n-polyfill'
8import { DropdownAction } from '../../../shared/buttons/action-dropdown.component' 8import { DropdownAction } from '../../../shared/buttons/action-dropdown.component'
9import { Video } from '../../../shared/video/video.model' 9import { Video } from '../../../shared/video/video.model'
@@ -18,13 +18,13 @@ import { VideoService } from '@app/shared/video/video.service'
18 styleUrls: [ '../moderation.component.scss', './video-block-list.component.scss' ] 18 styleUrls: [ '../moderation.component.scss', './video-block-list.component.scss' ]
19}) 19})
20export class VideoBlockListComponent extends RestTable implements OnInit { 20export class VideoBlockListComponent extends RestTable implements OnInit {
21 blocklist: (VideoBlocklist & { reasonHtml?: string })[] = [] 21 blocklist: (VideoBlacklist & { reasonHtml?: string })[] = []
22 totalRecords = 0 22 totalRecords = 0
23 sort: SortMeta = { field: 'createdAt', order: -1 } 23 sort: SortMeta = { field: 'createdAt', order: -1 }
24 pagination: RestPagination = { count: this.rowsPerPage, start: 0 } 24 pagination: RestPagination = { count: this.rowsPerPage, start: 0 }
25 listBlockTypeFilter: VideoBlockType = undefined 25 blocklistTypeFilter: VideoBlacklistType = undefined
26 26
27 videoBlocklistActions: DropdownAction<VideoBlocklist>[][] = [] 27 videoBlocklistActions: DropdownAction<VideoBlacklist>[][] = []
28 28
29 constructor ( 29 constructor (
30 private notifier: Notifier, 30 private notifier: Notifier,
@@ -99,7 +99,7 @@ export class VideoBlockListComponent extends RestTable implements OnInit {
99 .subscribe(config => { 99 .subscribe(config => {
100 // don't filter if auto-blacklist is not enabled as this will be the only list 100 // don't filter if auto-blacklist is not enabled as this will be the only list
101 if (config.autoBlacklist.videos.ofUsers.enabled) { 101 if (config.autoBlacklist.videos.ofUsers.enabled) {
102 this.listBlockTypeFilter = VideoBlockType.MANUAL 102 this.blocklistTypeFilter = VideoBlacklistType.MANUAL
103 } 103 }
104 }) 104 })
105 105
@@ -141,7 +141,7 @@ export class VideoBlockListComponent extends RestTable implements OnInit {
141 return 'VideoBlockListComponent' 141 return 'VideoBlockListComponent'
142 } 142 }
143 143
144 getVideoUrl (videoBlock: VideoBlocklist) { 144 getVideoUrl (videoBlock: VideoBlacklist) {
145 return Video.buildClientUrl(videoBlock.video.uuid) 145 return Video.buildClientUrl(videoBlock.video.uuid)
146 } 146 }
147 147
@@ -155,7 +155,7 @@ export class VideoBlockListComponent extends RestTable implements OnInit {
155 return this.markdownRenderer.textMarkdownToHTML(text) 155 return this.markdownRenderer.textMarkdownToHTML(text)
156 } 156 }
157 157
158 async unblockVideo (entry: VideoBlocklist) { 158 async unblockVideo (entry: VideoBlacklist) {
159 const confirmMessage = this.i18n( 159 const confirmMessage = this.i18n(
160 'Do you really want to unblock this video? It will be available again in the videos list.' 160 'Do you really want to unblock this video? It will be available again in the videos list.'
161 ) 161 )