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

@ -0,0 +1,16 @@
import { sortBy, take } from 'lodash'
const Notifications = {
data () {
return {
visibleNotificationCount: 20
}
},
computed: {
visibleNotifications () {
return take(sortBy(this.$store.state.statuses.notifications, ({action}) => -action.id), this.visibleNotificationCount)
}
}
}
export default Notifications