]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html
Fix about follows page
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / video-add-components / video-go-live.component.html
CommitLineData
c6c0fa6c
C
1<div *ngIf="!isInUpdateForm" class="upload-video-container">
2 <div class="first-step-block">
3 <my-global-icon class="upload-icon" iconName="upload" aria-hidden="true"></my-global-icon>
4
5 <div class="form-group">
6 <label i18n for="first-step-channel">Channel</label>
7 <my-select-channel
8 labelForId="first-step-channel" [items]="userVideoChannels" [(ngModel)]="firstStepChannelId"
9 ></my-select-channel>
10 </div>
11
12 <div class="form-group">
13 <label i18n for="first-step-privacy">Privacy</label>
14 <my-select-options
15 labelForId="first-step-privacy" [items]="videoPrivacies" [(ngModel)]="firstStepPrivacyId"
16 ></my-select-options>
17 </div>
18
19 <input
20 type="button" i18n-value value="Go Live" (click)="goLive()"
21 />
22 </div>
23</div>
24
25<div *ngIf="error" class="alert alert-danger">
26 <div i18n>Sorry, but something went wrong</div>
27 {{ error }}
28</div>
29
b5b68755
C
30<div class="alert alert-info" i18n *ngIf="isInUpdateForm && getMaxLiveDuration()">
31 Max live duration is {{ getMaxLiveDuration() | myDurationFormatter }}.
32 If your live reaches this limit, it will be automatically terminated.
33</div>
34
c6c0fa6c
C
35<!-- Hidden because we want to load the component -->
36<form [hidden]="!isInUpdateForm" novalidate [formGroup]="form">
37 <my-video-edit
f8c00564
C
38 [form]="form" [formErrors]="formErrors" [videoCaptions]="videoCaptions"
39 [schedulePublicationPossible]="false" [waitTranscodingEnabled]="false"
a5cf76af 40 [validationMessages]="validationMessages" [userVideoChannels]="userVideoChannels" [liveVideo]="liveVideo"
c6c0fa6c
C
41 type="go-live"
42 ></my-video-edit>
43
44 <div class="submit-container">
45 <div class="submit-button"
46 (click)="updateSecondStep()"
47 [ngClass]="{ disabled: !form.valid }"
48 >
49 <my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon>
50 <input type="button" i18n-value value="Update" />
51 </div>
52 </div>
53</form>