Fetch real data from backend
This commit is contained in:
parent
e067783a30
commit
95750509b1
6 changed files with 117 additions and 32 deletions
|
|
@ -6,6 +6,16 @@ const Announcement = {
|
|||
computed: {
|
||||
content () {
|
||||
return this.announcement.content
|
||||
},
|
||||
isRead () {
|
||||
return this.announcement.read
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
markAsRead () {
|
||||
if (!this.isRead) {
|
||||
return this.$store.dispatch('markAnnouncementAsRead', this.announcement.id)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue