client/src/app/+videos/+video-edit/video-update.component.html
<div class="margin-content">
<div class="title-page">
<span class="me-1" i18n>Update</span>
<a [routerLink]="getVideoUrl()">{{ videoDetails?.name }}</a>
</div>
<my-upload-progress
[isUploading]="isReplacingVideoFile" [uploadPercents]="videoUploadPercents" [error]="uploadError" [uploaded]="updateDone"
[enableRetryAfterError]="false" (cancel)="cancelUpload()"
>
</my-upload-progress>
<form novalidate [formGroup]="form">
<my-video-edit
#videoEdit
[form]="form" [formErrors]="formErrors" [forbidScheduledPublication]="forbidScheduledPublication"
[validationMessages]="validationMessages" [userVideoChannels]="userVideoChannels"
[videoCaptions]="videoCaptions" [hideWaitTranscoding]="isWaitTranscodingHidden()"
type="update" (pluginFieldsAdded)="hydratePluginFieldsFromVideo()"
[liveVideo]="liveVideo" [publishedVideo]="videoDetails"
[videoSource]="videoSource" [updateVideoFileEnabled]="isUpdateVideoFileEnabled()"
displayTranscriptionInfo="false"
(formBuilt)="onFormBuilt()"
>
<div *ngIf="isUpdateVideoFileEnabled()" class="form-group">
<label class="mb-0" i18n for="videofile">Replace video file</label>
<div i18n class="form-group-description">⚠️ Uploading a new version of your video will completely erase the current version</div>
<div>
<my-reactive-file
formControlName="replaceFile"
i18n-inputLabel inputLabel="Select the file to upload"
inputName="videofile" [extensions]="getVideoExtensions()" [displayFilename]="true" [displayReset]="true"
[buttonTooltip]="'(extensions: ' + getVideoExtensions() + ')'"
theme="primary"
></my-reactive-file>
</div>
</div>
</my-video-edit>
<div class="submit-container">
<my-button
theme="orange" i18n-label label="Update" icon="circle-tick" (click)="update()" (keydown.enter)="update()"
[disabled]="!form.valid || isUpdatingVideo === true"
></my-button>
</div>
</form>
</div>