Read title of list from props when settings document title

This commit is contained in:
2022-03-05 20:37:22 +01:00
parent 1161a25c97
commit afa3c21c99

View File

@@ -149,10 +149,12 @@ export default {
this.page = this.getPageFromUrl() || this.page;
if (this.results.length === 0) this.getListResults();
store.dispatch(
"documentTitle/updateTitle",
`${this.$router.history.current.name} ${this.$route.params.name}`
);
if (!this.shortList) {
store.dispatch(
"documentTitle/updateTitle",
`${this.$router.history.current.name} ${this.title}`
);
}
},
mounted() {
if (!this.shortList) {