Albums: Update window title on album change #15

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2019-12-05 14:41:57 +01:00
parent 85489bf5e1
commit a7ef85c467

View file

@ -40,6 +40,7 @@
this.filter.country = query['country'] ? query['country'] : '';
this.lastFilter = {};
this.routeName = this.$route.name;
this.findAlbum();
this.search();
}
},
@ -202,13 +203,16 @@
}
});
},
findAlbum() {
this.model.find(this.uuid).then(m => {
this.model = m;
this.$config.page.title = this.model.AlbumName;
window.document.title = this.model.AlbumName;
});
},
},
created() {
this.model.find(this.uuid).then(m => {
this.model = m;
this.$config.page.title = this.model.AlbumName;
window.document.title = this.model.AlbumName;
});
this.findAlbum();
this.search();
},
};