Skip to content

Commit

Permalink
Fix title
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack committed Oct 24, 2020
1 parent ac3ab6b commit c19dc8e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Topnav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,19 @@ export default {
return this.app.spaces[key] ? this.app.spaces[key] : false;
}
},
created() {
this.setTitle();
},
watch: {
space() {
document.title = this.space.name ? this.space.name : 'Snapshot';
this.setTitle();
}
},
methods: {
...mapActions(['login']),
setTitle() {
document.title = this.space.name ? this.space.name : 'Snapshot';
},
async handleLogin(connector) {
this.modalOpen = false;
this.loading = true;
Expand Down

0 comments on commit c19dc8e

Please sign in to comment.