Only show settings in game board route

This commit is contained in:
Roman Cervantes 2019-10-17 21:37:12 -07:00
parent ac266f3730
commit 0bed1ffcb8

View file

@ -10,7 +10,7 @@
{{ title }}
</router-link>
<settings />
<settings v-if="showSettings" />
</nav>
</template>
@ -30,8 +30,8 @@ export default {
return this.user && this.user.email;
},
hasSettings() {
return this.settings && this.user;
showSettings() {
return this.$route.name === 'game-board';
},
title() {