aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts10
1 files changed, 6 insertions, 4 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 c03f9248e..5a5132527 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
@@ -39,7 +39,8 @@ export class VideoBlockListComponent extends RestTable implements OnInit, AfterV
39 [ 39 [
40 { 40 {
41 label: this.i18n('Internal actions'), 41 label: this.i18n('Internal actions'),
42 isHeader: true 42 isHeader: true,
43 isDisplayed: videoBlock => videoBlock.type === VideoBlacklistType.AUTO_BEFORE_PUBLISHED
43 }, 44 },
44 { 45 {
45 label: this.i18n('Switch video block to manual'), 46 label: this.i18n('Switch video block to manual'),
@@ -54,7 +55,8 @@ export class VideoBlockListComponent extends RestTable implements OnInit, AfterV
54 55
55 err => this.notifier.error(err.message) 56 err => this.notifier.error(err.message)
56 ) 57 )
57 } 58 },
59 isDisplayed: videoBlock => videoBlock.type === VideoBlacklistType.AUTO_BEFORE_PUBLISHED
58 } 60 }
59 ], 61 ],
60 [ 62 [
@@ -63,12 +65,12 @@ export class VideoBlockListComponent extends RestTable implements OnInit, AfterV
63 isHeader: true 65 isHeader: true
64 }, 66 },
65 { 67 {
66 label: this.i18n('Unblock video'), 68 label: this.i18n('Unblock'),
67 handler: videoBlock => this.unblockVideo(videoBlock) 69 handler: videoBlock => this.unblockVideo(videoBlock)
68 }, 70 },
69 71
70 { 72 {
71 label: this.i18n('Delete video'), 73 label: this.i18n('Delete'),
72 handler: async videoBlock => { 74 handler: async videoBlock => {
73 const res = await this.confirmService.confirm( 75 const res = await this.confirmService.confirm(
74 this.i18n('Do you really want to delete this video?'), 76 this.i18n('Do you really want to delete this video?'),