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="margin-content">
|
||||||
<div class="title-page title-page-single">
|
<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>
|
||||||
|
|
||||||
<div *ngIf="!isUploadingVideo" class="upload-video-container">
|
<div *ngIf="!isUploadingVideo" class="upload-video-container">
|
||||||
|
|
|
@ -37,6 +37,7 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
|
||||||
id: 0,
|
id: 0,
|
||||||
uuid: ''
|
uuid: ''
|
||||||
}
|
}
|
||||||
|
videoFileName: string
|
||||||
|
|
||||||
form: FormGroup
|
form: FormGroup
|
||||||
formErrors: { [ id: string ]: string } = {}
|
formErrors: { [ id: string ]: string } = {}
|
||||||
|
@ -147,6 +148,8 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.videoFileName = videofile.name
|
||||||
|
|
||||||
const name = videofile.name.replace(/\.[^/.]+$/, '')
|
const name = videofile.name.replace(/\.[^/.]+$/, '')
|
||||||
const privacy = this.firstStepPrivacyId.toString()
|
const privacy = this.firstStepPrivacyId.toString()
|
||||||
const nsfw = false
|
const nsfw = false
|
||||||
|
|
Loading…
Reference in New Issue