diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-06-28 20:28:59 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-06-28 20:28:59 +0200 |
commit | 4ee63ec6487a1e5bc35f539c80364fb3c06b522b (patch) | |
tree | 5e6a0bbae53bcaa0b107b9e37a5cc916e1dd9bc0 | |
parent | 1c5d24e5b5b2c3e506de13969d536aca0329eb04 (diff) | |
download | PeerTube-4ee63ec6487a1e5bc35f539c80364fb3c06b522b.tar.gz PeerTube-4ee63ec6487a1e5bc35f539c80364fb3c06b522b.tar.zst PeerTube-4ee63ec6487a1e5bc35f539c80364fb3c06b522b.zip |
remove extra action for when the video block type is set to manual
-rw-r--r-- | client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts | 10 |
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?'), |