aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/video-update.component.html
blob: a33ac3db4c53f514760697cb4bbdb4f7f182a861 (plain) (tree)
1
2
3
4
5
6
7
8
9
                            
                          
                                         
                                                                
        
 
                                      
 
                  
                                                                                                       
                                                                                       
                                                                                           
                                                                        
                                                            
                                 

                                 
                     
 
                                  
                                                                                       
                                                              

                                                                     

          
      
<div class="margin-content">
  <div class="title-page">
    <span class="me-1" i18n>Update</span>
    <a [routerLink]="getVideoUrl()">{{ videoDetails?.name }}</a>
  </div>

  <form novalidate [formGroup]="form">

    <my-video-edit
      [form]="form" [formErrors]="formErrors" [forbidScheduledPublication]="forbidScheduledPublication"
      [validationMessages]="validationMessages" [userVideoChannels]="userVideoChannels"
      [videoCaptions]="videoCaptions" [waitTranscodingEnabled]="isWaitTranscodingEnabled()"
      type="update" (pluginFieldsAdded)="hydratePluginFieldsFromVideo()"
      [liveVideo]="liveVideo" [videoToUpdate]="videoDetails"
      [videoSource]="videoSource"

      (formBuilt)="onFormBuilt()"
    ></my-video-edit>

    <div class="submit-container">
      <my-button className="orange-button" i18n-label label="Update" icon="circle-tick"
                 (click)="update()" (keydown.enter)="update()"
                 [disabled]="!form.valid || isUpdatingVideo === true"
      ></my-button>
    </div>
  </form>
</div>