aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/video-update.component.html
blob: 5f50ddc742f1c8ddc865c0042d101f3fc4c1130c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="margin-content">
  <div class="title-page title-page-single">
    <span class="mr-1" i18n>Update</span>
    <a [routerLink]="[ '/videos/watch', video.uuid ]">{{ video?.name }}</a>
  </div>

  <form novalidate [formGroup]="form">

    <my-video-edit
      [form]="form" [formErrors]="formErrors" [schedulePublicationPossible]="schedulePublicationPossible"
      [validationMessages]="validationMessages" [userVideoChannels]="userVideoChannels"
      [videoCaptions]="videoCaptions" [waitTranscodingEnabled]="waitTranscodingEnabled"
      type="update" (pluginFieldsAdded)="hydratePluginFieldsFromVideo()"
      [videoLive]="videoLive"
    ></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>