Read title of list from props when settings document title
This commit is contained in:
		| @@ -149,10 +149,12 @@ export default { | |||||||
|     this.page = this.getPageFromUrl() || this.page; |     this.page = this.getPageFromUrl() || this.page; | ||||||
|     if (this.results.length === 0) this.getListResults(); |     if (this.results.length === 0) this.getListResults(); | ||||||
|  |  | ||||||
|  |     if (!this.shortList) { | ||||||
|       store.dispatch( |       store.dispatch( | ||||||
|         "documentTitle/updateTitle", |         "documentTitle/updateTitle", | ||||||
|       `${this.$router.history.current.name} ${this.$route.params.name}` |         `${this.$router.history.current.name} ${this.title}` | ||||||
|       ); |       ); | ||||||
|  |     } | ||||||
|   }, |   }, | ||||||
|   mounted() { |   mounted() { | ||||||
|     if (!this.shortList) { |     if (!this.shortList) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user