From ae5a1a3b673f2bccc21e57daff9ca54a46cb13db Mon Sep 17 00:00:00 2001 From: Roman Cervantes Date: Wed, 8 May 2019 15:38:30 -0700 Subject: [PATCH] Clean up --- src/components/NavHeader/NavHeader.vue | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/components/NavHeader/NavHeader.vue b/src/components/NavHeader/NavHeader.vue index e91ab866..fec329c5 100755 --- a/src/components/NavHeader/NavHeader.vue +++ b/src/components/NavHeader/NavHeader.vue @@ -3,7 +3,7 @@ - + - + @@ -35,6 +39,14 @@ export default { ...mapState(['user', 'platform', 'settings']), ...mapGetters(['darkModeEnabled']), + isLoggedIn() { + return this.user && this.user.email; + }, + + hasSettings() { + return this.settings && this.user; + }, + title() { if (this.$route.name === 'share-list') { return this.$route.query && this.$route.query.list @@ -47,7 +59,7 @@ export default { : 'GAMEBRARY'; }, - homeRoute() { + logoRoute() { if (this.$route.name === 'share-list') { return null; }