From 8cd1c690cae1b3c0cce15401e794fa8011816454 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sat, 26 Nov 2016 19:29:01 +0100 Subject: [PATCH] Hide timeline if user isn't logged in. --- src/components/nav_panel/nav_panel.js | 5 +++++ src/components/nav_panel/nav_panel.vue | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/nav_panel/nav_panel.js b/src/components/nav_panel/nav_panel.js index 318d30cc08..c2373a26c0 100644 --- a/src/components/nav_panel/nav_panel.js +++ b/src/components/nav_panel/nav_panel.js @@ -1,4 +1,9 @@ const NavPanel = { + computed: { + loggedIn () { + return this.$store.state.users.currentUser + } + } } export default NavPanel diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue index d493fad390..f463ef95c1 100644 --- a/src/components/nav_panel/nav_panel.vue +++ b/src/components/nav_panel/nav_panel.vue @@ -2,7 +2,7 @@