Basic mobile panel switcher.
This commit is contained in:
parent
4213d84b4d
commit
c7a375068d
3 changed files with 45 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue