diff options
author | Chocobozzz <me@florianbigard.com> | 2020-10-26 16:44:23 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | b5b687550d8ef8beafdf706e45d6556fb5f4c876 (patch) | |
tree | 232412d463c78af1f7ab5797db5aecf1096d08da /client/src/app/+videos/+video-edit/shared/video-edit.component.ts | |
parent | ef680f68351ec10ab73a1131570a6d14ce14c195 (diff) | |
download | PeerTube-b5b687550d8ef8beafdf706e45d6556fb5f4c876.tar.gz PeerTube-b5b687550d8ef8beafdf706e45d6556fb5f4c876.tar.zst PeerTube-b5b687550d8ef8beafdf706e45d6556fb5f4c876.zip |
Add ability to save live replay
Diffstat (limited to 'client/src/app/+videos/+video-edit/shared/video-edit.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/video-edit.component.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts index 304bf7ed0..26d871e59 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts +++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts | |||
@@ -127,7 +127,8 @@ export class VideoEditComponent implements OnInit, OnDestroy { | |||
127 | support: VIDEO_SUPPORT_VALIDATOR, | 127 | support: VIDEO_SUPPORT_VALIDATOR, |
128 | schedulePublicationAt: VIDEO_SCHEDULE_PUBLICATION_AT_VALIDATOR, | 128 | schedulePublicationAt: VIDEO_SCHEDULE_PUBLICATION_AT_VALIDATOR, |
129 | originallyPublishedAt: VIDEO_ORIGINALLY_PUBLISHED_AT_VALIDATOR, | 129 | originallyPublishedAt: VIDEO_ORIGINALLY_PUBLISHED_AT_VALIDATOR, |
130 | liveStreamKey: null | 130 | liveStreamKey: null, |
131 | saveReplay: null | ||
131 | } | 132 | } |
132 | 133 | ||
133 | this.formValidatorService.updateForm( | 134 | this.formValidatorService.updateForm( |
@@ -239,6 +240,10 @@ export class VideoEditComponent implements OnInit, OnDestroy { | |||
239 | this.videoCaptionAddModal.show() | 240 | this.videoCaptionAddModal.show() |
240 | } | 241 | } |
241 | 242 | ||
243 | isSaveReplayEnabled () { | ||
244 | return this.serverConfig.live.allowReplay | ||
245 | } | ||
246 | |||
242 | private sortVideoCaptions () { | 247 | private sortVideoCaptions () { |
243 | this.videoCaptions.sort((v1, v2) => { | 248 | this.videoCaptions.sort((v1, v2) => { |
244 | if (v1.language.label < v2.language.label) return -1 | 249 | if (v1.language.label < v2.language.label) return -1 |