aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-library/my-videos/my-videos.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-18 16:31:12 +0100
committerChocobozzz <me@florianbigard.com>2022-03-18 16:31:12 +0100
commit22e909224c023c10699fce5c8b9db4be2cd049d7 (patch)
treec11544c5c504c345f4ca5981a496937e97276625 /client/src/app/+my-library/my-videos/my-videos.component.ts
parent68e72ba90c35fc7922e10b221f513ef711b35353 (diff)
downloadPeerTube-22e909224c023c10699fce5c8b9db4be2cd049d7.tar.gz
PeerTube-22e909224c023c10699fce5c8b9db4be2cd049d7.tar.zst
PeerTube-22e909224c023c10699fce5c8b9db4be2cd049d7.zip
Don't allow video edition if not enabled
Diffstat (limited to 'client/src/app/+my-library/my-videos/my-videos.component.ts')
-rw-r--r--client/src/app/+my-library/my-videos/my-videos.component.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts
index c998b7c49..45a586981 100644
--- a/client/src/app/+my-library/my-videos/my-videos.component.ts
+++ b/client/src/app/+my-library/my-videos/my-videos.component.ts
@@ -9,7 +9,7 @@ import { AdvancedInputFilter } from '@app/shared/shared-forms'
9import { DropdownAction, Video, VideoService } from '@app/shared/shared-main' 9import { DropdownAction, Video, VideoService } from '@app/shared/shared-main'
10import { LiveStreamInformationComponent } from '@app/shared/shared-video-live' 10import { LiveStreamInformationComponent } from '@app/shared/shared-video-live'
11import { MiniatureDisplayOptions, SelectionType, VideosSelectionComponent } from '@app/shared/shared-video-miniature' 11import { MiniatureDisplayOptions, SelectionType, VideosSelectionComponent } from '@app/shared/shared-video-miniature'
12import { VideoChannel, VideoSortField, VideoState } from '@shared/models' 12import { VideoChannel, VideoSortField } from '@shared/models'
13import { VideoChangeOwnershipComponent } from './modals/video-change-ownership.component' 13import { VideoChangeOwnershipComponent } from './modals/video-change-ownership.component'
14 14
15@Component({ 15@Component({
@@ -207,7 +207,7 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook {
207 { 207 {
208 label: $localize`Editor`, 208 label: $localize`Editor`,
209 linkBuilder: ({ video }) => [ '/video-editor/edit', video.uuid ], 209 linkBuilder: ({ video }) => [ '/video-editor/edit', video.uuid ],
210 isDisplayed: ({ video }) => video.state.id === VideoState.PUBLISHED, 210 isDisplayed: ({ video }) => video.isEditableBy(this.authService.getUser(), this.serverService.getHTMLConfig().videoEditor.enabled),
211 iconName: 'film' 211 iconName: 'film'
212 }, 212 },
213 { 213 {