aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-01-17 17:27:39 +0100
committerRoger Braun <roger@rogerbraun.net>2017-01-17 17:27:39 +0100
commitc7a375068d3337144dde85fabf4b4d5a874d70a0 (patch)
treea2df61ab329811a0417fe920ec7406b435f31213 /src/App.js
parent4213d84b4da2c8b2ba705f7733e9b65cdc8fa53f (diff)
Basic mobile panel switcher.
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/App.js b/src/App.js
index 8f90e6be..14a41af0 100644
--- a/src/App.js
+++ b/src/App.js
@@ -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
+ }
}
}