diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-01-17 17:27:39 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-01-17 17:27:39 +0100 |
| commit | c7a375068d3337144dde85fabf4b4d5a874d70a0 (patch) | |
| tree | a2df61ab329811a0417fe920ec7406b435f31213 /src/App.js | |
| parent | 4213d84b4da2c8b2ba705f7733e9b65cdc8fa53f (diff) | |
Basic mobile panel switcher.
Diffstat (limited to 'src/App.js')
| -rw-r--r-- | src/App.js | 8 |
1 files changed, 8 insertions, 0 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 + } } } |
