[
{
label: this.i18n('Internal actions'),
- isHeader: true
+ isHeader: true,
+ isDisplayed: videoBlock => videoBlock.type === VideoBlacklistType.AUTO_BEFORE_PUBLISHED
},
{
label: this.i18n('Switch video block to manual'),
err => this.notifier.error(err.message)
)
- }
+ },
+ isDisplayed: videoBlock => videoBlock.type === VideoBlacklistType.AUTO_BEFORE_PUBLISHED
}
],
[
isHeader: true
},
{
- label: this.i18n('Unblock video'),
+ label: this.i18n('Unblock'),
handler: videoBlock => this.unblockVideo(videoBlock)
},
{
- label: this.i18n('Delete video'),
+ label: this.i18n('Delete'),
handler: async videoBlock => {
const res = await this.confirmService.confirm(
this.i18n('Do you really want to delete this video?'),