ActivityPub-federated video streaming platform using P2P directly in your web browser
Add filename in upload form title
Chocobozzz2f315e2f9155
diff --git a/client/src/app/videos/+video-edit/video-add.component.html b/client/src/app/videos/+video-edit/video-add.component.htmlindex 6dcf5bf755..440556562b 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 @@<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">diff --git a/client/src/app/videos/+video-edit/video-add.component.ts b/client/src/app/videos/+video-edit/video-add.component.tsindex 75d6081626..e81243d3e7 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, OnDestroyid: 0,uuid: ''}+ videoFileName: stringform: FormGroupformErrors: { [ id: string ]: string } = {}@@ -147,6 +148,8 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroyreturn}+ this.videoFileName = videofile.name+const name = videofile.name.replace(/\.[^/.]+$/, '')const privacy = this.firstStepPrivacyId.toString()const nsfw = false