From c7a375068d3337144dde85fabf4b4d5a874d70a0 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 17 Jan 2017 17:27:39 +0100 Subject: Basic mobile panel switcher. --- src/App.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/App.js') 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 + } } } -- cgit v1.2.3-70-g09d2