aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-20 09:53:42 +0100
committerChocobozzz <me@florianbigard.com>2018-02-20 09:53:42 +0100
commit2f315e2f915514eaddee30394b0d99790bcda06b (patch)
tree2ca3e0c2259424a0d63675596a01b74184b5653e /client
parent3580fc00e44db980c371cbf16b4806f4240945f2 (diff)
downloadPeerTube-2f315e2f915514eaddee30394b0d99790bcda06b.tar.gz
PeerTube-2f315e2f915514eaddee30394b0d99790bcda06b.tar.zst
PeerTube-2f315e2f915514eaddee30394b0d99790bcda06b.zip
Add filename in upload form title
Diffstat (limited to 'client')
-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