Skip to content
Snippets Groups Projects
Unverified Commit 2f315e2f authored by Chocobozzz's avatar Chocobozzz
Browse files

Add filename in upload form title

parent 3580fc00
No related branches found
No related tags found
No related merge requests found
<div class="margin-content">
<div class="title-page title-page-single">
Upload your video
<ng-template [ngIf]="!videoFileName">Upload your video</ng-template>
<ng-template [ngIf]="videoFileName">Upload {{ videoFileName }}</ng-template>
</div>
<div *ngIf="!isUploadingVideo" class="upload-video-container">
......
......@@ -37,6 +37,7 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
id: 0,
uuid: ''
}
videoFileName: string
form: FormGroup
formErrors: { [ id: string ]: string } = {}
......@@ -147,6 +148,8 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
return
}
this.videoFileName = videofile.name
const name = videofile.name.replace(/\.[^/.]+$/, '')
const privacy = this.firstStepPrivacyId.toString()
const nsfw = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment