Add basic notification support.

This commit is contained in:
Roger Braun 2016-11-27 19:44:56 +01:00
parent e1c5030311
commit e8c85434b7
5 changed files with 85 additions and 3 deletions

View file

@ -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})` } }
}
}