mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add filename in upload form title
This commit is contained in:
parent
3580fc00e4
commit
2f315e2f91
@ -1,6 +1,7 @@
|
||||
<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
|
||||
|
Loading…
Reference in New Issue
Block a user