Albums: Update window title on album change #15
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
85489bf5e1
commit
a7ef85c467
1 changed files with 9 additions and 5 deletions
|
@ -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();
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue