diff options
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add.component.html')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add.component.html | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/client/src/app/videos/+video-edit/video-add.component.html b/client/src/app/videos/+video-edit/video-add.component.html index 6883f8280..a6f2bf6f2 100644 --- a/client/src/app/videos/+video-edit/video-add.component.html +++ b/client/src/app/videos/+video-edit/video-add.component.html | |||
@@ -15,20 +15,23 @@ | |||
15 | </div> | 15 | </div> |
16 | 16 | ||
17 | <div class="form-group"> | 17 | <div class="form-group"> |
18 | <select [(ngModel)]="firstStepPrivacy"> | 18 | <select [(ngModel)]="firstStepPrivacyId"> |
19 | <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option> | 19 | <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option> |
20 | </select> | 20 | </select> |
21 | </div> | 21 | </div> |
22 | 22 | ||
23 | <div class="form-group"> | 23 | <div class="form-group"> |
24 | <select [(ngModel)]="firstStepChannel"> | 24 | <select [(ngModel)]="firstStepChannelId"> |
25 | <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> | 25 | <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> |
26 | </select> | 26 | </select> |
27 | </div> | 27 | </div> |
28 | </div> | 28 | </div> |
29 | </div> | 29 | </div> |
30 | 30 | ||
31 | <p-progressBar *ngIf="isUploadingVideo" [value]="videoUploadPercents"></p-progressBar> | 31 | <p-progressBar |
32 | *ngIf="isUploadingVideo" [value]="videoUploadPercents" | ||
33 | [ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }" | ||
34 | ></p-progressBar> | ||
32 | 35 | ||
33 | <!-- Hidden because we need to load the component --> | 36 | <!-- Hidden because we need to load the component --> |
34 | <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form"> | 37 | <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form"> |
@@ -37,10 +40,13 @@ | |||
37 | [validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies" | 40 | [validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies" |
38 | ></my-video-edit> | 41 | ></my-video-edit> |
39 | 42 | ||
43 | |||
40 | <div class="submit-container"> | 44 | <div class="submit-container"> |
41 | <div class="submit-button" [ngClass]="{ disabled: !form.valid }"> | 45 | <div *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div> |
46 | |||
47 | <div class="submit-button" (click)="updateSecondStep()" [ngClass]="{ disabled: !form.valid || videoUploaded !== true }"> | ||
42 | <span class="icon icon-validate"></span> | 48 | <span class="icon icon-validate"></span> |
43 | <input type="button" value="Publish" (click)="upload()" /> | 49 | <input type="button" value="Publish" /> |
44 | </div> | 50 | </div> |
45 | </div> | 51 | </div> |
46 | </form> | 52 | </form> |