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, VideoState } from '@shared/models'
+import { VideoChannel, VideoSortField } from '@shared/models'
import { VideoChangeOwnershipComponent } from './modals/video-change-ownership.component'
@Component({
private buildActions () {
this.videoActions = [
{
- label: $localize`Editor`,
- linkBuilder: ({ video }) => [ '/video-editor/edit', video.uuid ],
- isDisplayed: ({ video }) => video.state.id === VideoState.PUBLISHED,
+ label: $localize`Studio`,
+ linkBuilder: ({ video }) => [ '/studio/edit', video.uuid ],
+ isDisplayed: ({ video }) => video.isEditableBy(this.authService.getUser(), this.serverService.getHTMLConfig().videoStudio.enabled),
iconName: 'film'
},
{