diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-27 19:44:56 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-27 19:44:56 +0100 |
| commit | e8c85434b7b884a9fa398d75694691548bc35aa3 (patch) | |
| tree | d5b2ff0ad99af9087e664c27588522c60753aa08 /src/App.js | |
| parent | e1c50303112713c83e15c9d71cf6a5af737458e3 (diff) | |
Add basic notification support.
Diffstat (limited to 'src/App.js')
| -rw-r--r-- | src/App.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,14 +1,16 @@ import UserPanel from './components/user_panel/user_panel.vue' import NavPanel from './components/nav_panel/nav_panel.vue' +import Notifications from './components/notifications/notifications.vue' export default { name: 'app', components: { UserPanel, - NavPanel + NavPanel, + Notifications }, computed: { - user () { return this.$store.state.users.currentUser || {} }, - style () { return { 'background-image': `url(${this.user.background_image})` } } + currentUser () { return this.$store.state.users.currentUser }, + style () { return { 'background-image': `url(${this.currentUser.background_image})` } } } } |
