diff --git a/src/app/Nav.vue b/src/app/Nav.vue index 73697eb..6da84db 100644 --- a/src/app/Nav.vue +++ b/src/app/Nav.vue @@ -1,9 +1,12 @@ - + - + + + + Home @@ -43,6 +46,7 @@ import Vue from 'vue' import Logo from './Logo.vue' import PlaylistNav from '@/playlist/PlaylistNav.vue' + import { mapActions } from 'vuex' export default Vue.extend({ components: { @@ -50,10 +54,7 @@ PlaylistNav, }, methods: { - logout() { - this.$auth.logout() - this.$router.go(0) - }, - } + ...mapActions(['hideMenu']), + }, }) diff --git a/src/app/Sidebar.vue b/src/app/Sidebar.vue index 4496011..9a13d5f 100644 --- a/src/app/Sidebar.vue +++ b/src/app/Sidebar.vue @@ -12,13 +12,16 @@ no-header backdrop backdrop-variant="" - @hidden="toggleMenu" + @hidden="hideMenu" >