Basic mobile panel switcher.

This commit is contained in:
Roger Braun 2017-01-17 17:27:39 +01:00
parent 4213d84b4d
commit c7a375068d
3 changed files with 45 additions and 7 deletions

View file

@ -11,8 +11,16 @@ export default {
Notifications,
StyleSwitcher
},
data: () => ({
mobileActivePanel: 'timeline'
}),
computed: {
currentUser () { return this.$store.state.users.currentUser },
style () { return { 'background-image': `url(${this.currentUser.background_image})` } }
},
methods: {
activatePanel (panelName) {
this.mobileActivePanel = panelName
}
}
}