2018-04-09 17:44:37 +00:00
|
|
|
import Status from '../status/status.vue'
|
|
|
|
import StillImage from '../still-image/still-image.vue'
|
|
|
|
import UserCardContent from '../user_card_content/user_card_content.vue'
|
2018-06-18 09:09:14 +00:00
|
|
|
import { highlightClass, highlightStyle } from '../../services/user_highlighter/user_highlighter.js'
|
2018-04-09 17:44:37 +00:00
|
|
|
|
|
|
|
const Notification = {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
userExpanded: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
props: [
|
|
|
|
'notification'
|
|
|
|
],
|
|
|
|
components: {
|
|
|
|
Status, StillImage, UserCardContent
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
toggleUserExpanded () {
|
|
|
|
this.userExpanded = !this.userExpanded
|
|
|
|
}
|
2018-06-18 09:09:14 +00:00
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
userClass () {
|
|
|
|
return highlightClass(this.notification.action.user, this.$store)
|
|
|
|
},
|
|
|
|
userStyle () {
|
|
|
|
return highlightStyle(this.notification.action.user, this.$store)
|
|
|
|
},
|
2018-04-09 17:44:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Notification
|