+ isDisplayed: () => this.authUser.hasRight(UserRight.REMOVE_ANY_VIDEO),
+ iconName: 'delete'
+ },
+ {
+ label: $localize`Block`,
+ handler: videos => this.videoBlockModal.show(videos),
+ isDisplayed: videos => this.authUser.hasRight(UserRight.MANAGE_VIDEO_BLACKLIST) && videos.every(v => !v.blacklisted),
+ iconName: 'no'
+ },
+ {
+ label: $localize`Unblock`,
+ handler: videos => this.unblockVideos(videos),
+ isDisplayed: videos => this.authUser.hasRight(UserRight.MANAGE_VIDEO_BLACKLIST) && videos.every(v => v.blacklisted),
+ iconName: 'undo'
+ }
+ ],
+ [
+ {
+ label: $localize`Delete HLS files`,
+ handler: videos => this.removeVideoFiles(videos, 'hls'),
+ isDisplayed: videos => this.authUser.hasRight(UserRight.MANAGE_VIDEO_FILES) && videos.every(v => v.hasHLS() && v.hasWebTorrent()),
+ iconName: 'delete'
+ },
+ {
+ label: $localize`Delete WebTorrent files`,
+ handler: videos => this.removeVideoFiles(videos, 'webtorrent'),
+ isDisplayed: videos => this.authUser.hasRight(UserRight.MANAGE_VIDEO_FILES) && videos.every(v => v.hasHLS() && v.hasWebTorrent()),
+ iconName: 'delete'