From a7ef85c46746ac8fe821a037afd887604173201f Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 5 Dec 2019 14:41:57 +0100 Subject: [PATCH] Albums: Update window title on album change #15 Signed-off-by: Michael Mayer --- frontend/src/pages/album/photos.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/album/photos.vue b/frontend/src/pages/album/photos.vue index 374bf5bff..e6e28bd01 100644 --- a/frontend/src/pages/album/photos.vue +++ b/frontend/src/pages/album/photos.vue @@ -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(); }, };