Changed title of Watch view to title of the video (#739)
* Changed title of Watch view to title of the video * Called updateTitle in a more appropriate location * Removed redundandt router portion
This commit is contained in:
parent
d7fe2dcfbd
commit
e7ce45b524
|
@ -413,6 +413,7 @@ export default Vue.extend({
|
|||
}
|
||||
|
||||
this.isLoading = false
|
||||
this.updateTitle()
|
||||
})
|
||||
.catch(err => {
|
||||
const errorMessage = this.$t('Local API Error (Click to copy)')
|
||||
|
@ -578,6 +579,7 @@ export default Vue.extend({
|
|||
}
|
||||
|
||||
this.isLoading = false
|
||||
this.updateTitle()
|
||||
})
|
||||
.catch(err => {
|
||||
const errorMessage = this.$t('Invidious API Error (Click to copy)')
|
||||
|
@ -988,6 +990,10 @@ export default Vue.extend({
|
|||
return Math.floor(this.getWatchedProgress())
|
||||
},
|
||||
|
||||
updateTitle: function () {
|
||||
document.title = `${this.videoTitle} - FreeTube`
|
||||
},
|
||||
|
||||
...mapActions([
|
||||
'showToast',
|
||||
'buildVTTFileLocally',
|
||||
|
|
Loading…
Reference in New Issue