Add Page Titles Everywhere (#177)

Add page titles everywhere

Add global mixin to set page title

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/177
This commit is contained in:
konrad 2020-07-07 20:07:13 +00:00
parent d23f07d5ac
commit a0b9acee41
25 changed files with 80 additions and 7 deletions

View file

@ -65,14 +65,17 @@
backgrounds: {},
}
},
created() {
this.loadBackgroundsForLists()
},
mounted() {
this.setTitle('Namespaces & Lists')
},
computed: mapState({
namespaces(state) {
return state.namespaces.namespaces.filter(n => this.showArchived ? true : !n.isArchived)
},
}),
created() {
this.loadBackgroundsForLists()
},
methods: {
loadBackgroundsForLists() {
const listService = new ListService()