fix(webui): change page title on book change

This commit is contained in:
Gauthier Roebroeck 2020-03-20 09:28:09 +08:00
parent ef765ffa3e
commit 2d0e21b0b8

View file

@ -389,7 +389,7 @@ export default Vue.extend({
async book (val) {
if (this.$_.has(val, 'name')) {
this.series = await this.$komgaSeries.getOneSeries(val.seriesId)
document.title = `Komga - ${this.bookTitle}`
document.title = `Komga - ${getBookTitleCompact(val.metadata.title, this.series.metadata.title)}`
}
}
},