1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Fix upload tab title when the file is uplodaded

This commit is contained in:
Chocobozzz 2025-06-27 09:22:33 +02:00
parent 013d413841
commit 684fb57019
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -74,6 +74,8 @@ export class VideoUploadComponent implements OnInit, OnDestroy, AfterViewInit, C
ngOnInit () { ngOnInit () {
this.uploadEventsSubscription = this.manageController.getUploadEventsObs() this.uploadEventsSubscription = this.manageController.getUploadEventsObs()
.subscribe(state => { .subscribe(state => {
this.updateTitle()
if (state.status === 'cancelled') { if (state.status === 'cancelled') {
debugLogger('Upload cancelled', state) debugLogger('Upload cancelled', state)
@ -94,8 +96,6 @@ export class VideoUploadComponent implements OnInit, OnDestroy, AfterViewInit, C
this.manageController.silentRedirectOnManage(shortUUID, this.route) this.manageController.silentRedirectOnManage(shortUUID, this.route)
return return
} }
this.updateTitle()
}) })
this.firstStepChannelId = this.userChannels()[0].id this.firstStepChannelId = this.userChannels()[0].id