diff options
Diffstat (limited to 'client/src/app/videos/+video-edit/shared')
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-edit.component.html | 10 | ||||
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-edit.component.ts | 8 |
2 files changed, 15 insertions, 3 deletions
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.html b/client/src/app/videos/+video-edit/shared/video-edit.component.html index c8cd0d679..379cf7948 100644 --- a/client/src/app/videos/+video-edit/shared/video-edit.component.html +++ b/client/src/app/videos/+video-edit/shared/video-edit.component.html | |||
@@ -109,6 +109,16 @@ | |||
109 | <label i18n for="commentsEnabled">Enable video comments</label> | 109 | <label i18n for="commentsEnabled">Enable video comments</label> |
110 | </div> | 110 | </div> |
111 | 111 | ||
112 | <div class="form-group form-group-checkbox"> | ||
113 | <input type="checkbox" id="waitTranscoding" formControlName="waitTranscoding" /> | ||
114 | <label for="waitTranscoding"></label> | ||
115 | <label i18n for="waitTranscoding">Wait transcoding before publishing the video</label> | ||
116 | <my-help | ||
117 | tooltipPlacement="top" helpType="custom" i18n-customHtml | ||
118 | customHtml="If you decide to not wait transcoding before publishing the video, it can be unplayable until it transcoding ends." | ||
119 | ></my-help> | ||
120 | </div> | ||
121 | |||
112 | </div> | 122 | </div> |
113 | </tab> | 123 | </tab> |
114 | 124 | ||
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 61515c0b0..ee4fd5dc1 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 | |||
@@ -47,6 +47,7 @@ export class VideoEditComponent implements OnInit { | |||
47 | const defaultValues = { | 47 | const defaultValues = { |
48 | nsfw: 'false', | 48 | nsfw: 'false', |
49 | commentsEnabled: 'true', | 49 | commentsEnabled: 'true', |
50 | waitTranscoding: 'true', | ||
50 | tags: [] | 51 | tags: [] |
51 | } | 52 | } |
52 | const obj = { | 53 | const obj = { |
@@ -55,6 +56,7 @@ export class VideoEditComponent implements OnInit { | |||
55 | channelId: this.videoValidatorsService.VIDEO_CHANNEL, | 56 | channelId: this.videoValidatorsService.VIDEO_CHANNEL, |
56 | nsfw: null, | 57 | nsfw: null, |
57 | commentsEnabled: null, | 58 | commentsEnabled: null, |
59 | waitTranscoding: null, | ||
58 | category: this.videoValidatorsService.VIDEO_CATEGORY, | 60 | category: this.videoValidatorsService.VIDEO_CATEGORY, |
59 | licence: this.videoValidatorsService.VIDEO_LICENCE, | 61 | licence: this.videoValidatorsService.VIDEO_LICENCE, |
60 | language: this.videoValidatorsService.VIDEO_LANGUAGE, | 62 | language: this.videoValidatorsService.VIDEO_LANGUAGE, |
@@ -74,13 +76,13 @@ export class VideoEditComponent implements OnInit { | |||
74 | ) | 76 | ) |
75 | 77 | ||
76 | // We will update the "support" field depending on the channel | 78 | // We will update the "support" field depending on the channel |
77 | this.form.controls['channelId'] | 79 | this.form.controls[ 'channelId' ] |
78 | .valueChanges | 80 | .valueChanges |
79 | .pipe(map(res => parseInt(res.toString(), 10))) | 81 | .pipe(map(res => parseInt(res.toString(), 10))) |
80 | .subscribe( | 82 | .subscribe( |
81 | newChannelId => { | 83 | newChannelId => { |
82 | const oldChannelId = parseInt(this.form.value['channelId'], 10) | 84 | const oldChannelId = parseInt(this.form.value[ 'channelId' ], 10) |
83 | const currentSupport = this.form.value['support'] | 85 | const currentSupport = this.form.value[ 'support' ] |
84 | 86 | ||
85 | // Not initialized yet | 87 | // Not initialized yet |
86 | if (isNaN(newChannelId)) return | 88 | if (isNaN(newChannelId)) return |