From e8c85434b7b884a9fa398d75694691548bc35aa3 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sun, 27 Nov 2016 19:44:56 +0100 Subject: Add basic notification support. --- src/App.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/App.js') diff --git a/src/App.js b/src/App.js index c3e5164a..93f8f361 100644 --- a/src/App.js +++ b/src/App.js @@ -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})` } } } } -- cgit v1.2.3-70-g09d2