Separate notification into its own component, fix follow notification type
This commit is contained in:
parent
ec2a719f0d
commit
c214197cee
5 changed files with 73 additions and 39 deletions
24
src/components/notification/notification.js
Normal file
24
src/components/notification/notification.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
import Status from '../status/status.vue'
|
||||
import StillImage from '../still-image/still-image.vue'
|
||||
import UserCardContent from '../user_card_content/user_card_content.vue'
|
||||
|
||||
const Notification = {
|
||||
data () {
|
||||
return {
|
||||
userExpanded: false
|
||||
}
|
||||
},
|
||||
props: [
|
||||
'notification'
|
||||
],
|
||||
components: {
|
||||
Status, StillImage, UserCardContent
|
||||
},
|
||||
methods: {
|
||||
toggleUserExpanded () {
|
||||
this.userExpanded = !this.userExpanded
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default Notification
|
Loading…
Add table
Add a link
Reference in a new issue