import { DropdownAction, Video, VideoService } from '@app/shared/shared-main'
import { LiveStreamInformationComponent } from '@app/shared/shared-video-live'
import { MiniatureDisplayOptions, SelectionType, VideosSelectionComponent } from '@app/shared/shared-video-miniature'
-import { VideoChannel, VideoSortField } from '@shared/models'
+import { VideoChannel, VideoSortField, VideoState } from '@shared/models'
import { VideoChangeOwnershipComponent } from './modals/video-change-ownership.component'
@Component({
const channelFilters = this.userChannels.map(c => {
return {
- queryParams: { search: 'channel:' + c.name },
+ value: 'channel:' + c.name,
label: c.name
}
})
title: $localize`Advanced filters`,
children: [
{
- queryParams: { search: 'isLive:true' },
+ value: 'isLive:true',
label: $localize`Only live videos`
}
]
private buildActions () {
this.videoActions = [
+ {
+ label: $localize`Editor`,
+ linkBuilder: ({ video }) => [ '/video-editor/edit', video.uuid ],
+ isDisplayed: ({ video }) => video.state.id === VideoState.PUBLISHED,
+ iconName: 'film'
+ },
{
label: $localize`Display live information`,
handler: ({ video }) => this.displayLiveInformation(video),