From 4836c8ac74569668001f1adc39fe84377ddb7dba Mon Sep 17 00:00:00 2001 From: shpuld Date: Sat, 22 Dec 2018 17:32:07 +0200 Subject: Add some more routes to side drawer --- src/components/side_drawer/side_drawer.js | 6 +++++- src/components/side_drawer/side_drawer.vue | 30 ++++++++++++++++++++--------- src/components/user_profile/user_profile.js | 1 - 3 files changed, 26 insertions(+), 11 deletions(-) (limited to 'src/components') diff --git a/src/components/side_drawer/side_drawer.js b/src/components/side_drawer/side_drawer.js index b1b7701c..6541077b 100644 --- a/src/components/side_drawer/side_drawer.js +++ b/src/components/side_drawer/side_drawer.js @@ -1,5 +1,5 @@ const SideDrawer = { - props: [ 'activatePanel', 'closed', 'clickoutside' ], + props: [ 'activatePanel', 'closed', 'clickoutside', 'logout' ], computed: { currentUser () { return this.$store.state.users.currentUser @@ -14,6 +14,10 @@ const SideDrawer = { if (typeof this.clickoutside === 'function') { this.clickoutside() } + }, + doLogout () { + this.logout() + this.gotoPanel('timeline') } } } diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue index b5f399b5..1593ae65 100644 --- a/src/components/side_drawer/side_drawer.vue +++ b/src/components/side_drawer/side_drawer.vue @@ -3,21 +3,25 @@
@@ -139,8 +153,6 @@ &.router-link-active { font-weight: bolder; - background-color: $fallback--lightBg; - background-color: var(--lightBg, $fallback--lightBg); &:hover { text-decoration: underline; diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index deee77dd..d8d0c532 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -4,7 +4,6 @@ import Timeline from '../timeline/timeline.vue' const UserProfile = { created () { - debugger this.$store.commit('clearTimeline', { timeline: 'user' }) this.$store.dispatch('startFetching', ['user', this.fetchBy]) if (!this.user) { -- cgit v1.2.3-70-g09d2