aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/videos/+video-edit/video-add-components/video-upload.component.html4
-rw-r--r--client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts6
2 files changed, 8 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html
index ff0e45413..fa57c8cb5 100644
--- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html
+++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html
@@ -49,10 +49,10 @@
49 49
50 <div class="submit-button" 50 <div class="submit-button"
51 (click)="updateSecondStep()" 51 (click)="updateSecondStep()"
52 [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true || videoUploaded !== true }" 52 [ngClass]="{ disabled: isPublishingButtonDisabled() }"
53 > 53 >
54 <span class="icon icon-validate"></span> 54 <span class="icon icon-validate"></span>
55 <input type="button" i18n-value value="Publish" /> 55 <input [disabled]="isPublishingButtonDisabled()" type="button" i18n-value value="Publish" />
56 </div> 56 </div>
57 </div> 57 </div>
58</form> \ No newline at end of file 58</form> \ No newline at end of file
diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts
index 584441817..941dc5441 100644
--- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts
+++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts
@@ -206,6 +206,12 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
206 ) 206 )
207 } 207 }
208 208
209 isPublishingButtonDisabled () {
210 return !this.form.valid ||
211 this.isUpdatingVideo === true ||
212 this.videoUploaded !== true
213 }
214
209 updateSecondStep () { 215 updateSecondStep () {
210 if (this.checkForm() === false) { 216 if (this.checkForm() === false) {
211 return 217 return