aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2016-11-27 19:44:56 +0100
committerRoger Braun <roger@rogerbraun.net>2016-11-27 19:44:56 +0100
commite8c85434b7b884a9fa398d75694691548bc35aa3 (patch)
treed5b2ff0ad99af9087e664c27588522c60753aa08 /src/App.js
parente1c50303112713c83e15c9d71cf6a5af737458e3 (diff)
Add basic notification support.
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js8
1 files changed, 5 insertions, 3 deletions
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})` } }
}
}