aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.html3
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.ts3
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-edit/video-add.component.html b/client/src/app/videos/+video-edit/video-add.component.html
index 6dcf5bf75..440556562 100644
--- a/client/src/app/videos/+video-edit/video-add.component.html
+++ b/client/src/app/videos/+video-edit/video-add.component.html
@@ -1,6 +1,7 @@
1<div class="margin-content"> 1<div class="margin-content">
2 <div class="title-page title-page-single"> 2 <div class="title-page title-page-single">
3 Upload your video 3 <ng-template [ngIf]="!videoFileName">Upload your video</ng-template>
4 <ng-template [ngIf]="videoFileName">Upload {{ videoFileName }}</ng-template>
4 </div> 5 </div>
5 6
6 <div *ngIf="!isUploadingVideo" class="upload-video-container"> 7 <div *ngIf="!isUploadingVideo" class="upload-video-container">
diff --git a/client/src/app/videos/+video-edit/video-add.component.ts b/client/src/app/videos/+video-edit/video-add.component.ts
index 75d608162..e81243d3e 100644
--- a/client/src/app/videos/+video-edit/video-add.component.ts
+++ b/client/src/app/videos/+video-edit/video-add.component.ts
@@ -37,6 +37,7 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
37 id: 0, 37 id: 0,
38 uuid: '' 38 uuid: ''
39 } 39 }
40 videoFileName: string
40 41
41 form: FormGroup 42 form: FormGroup
42 formErrors: { [ id: string ]: string } = {} 43 formErrors: { [ id: string ]: string } = {}
@@ -147,6 +148,8 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
147 return 148 return
148 } 149 }
149 150
151 this.videoFileName = videofile.name
152
150 const name = videofile.name.replace(/\.[^/.]+$/, '') 153 const name = videofile.name.replace(/\.[^/.]+$/, '')
151 const privacy = this.firstStepPrivacyId.toString() 154 const privacy = this.firstStepPrivacyId.toString()
152 const nsfw = false 155 const nsfw = false