Add published time for announcements
This commit is contained in:
parent
7a73f2fcd2
commit
68ef7e4e65
2 changed files with 11 additions and 0 deletions
|
|
@ -33,6 +33,14 @@ const Announcement = {
|
|||
isRead () {
|
||||
return this.announcement.read
|
||||
},
|
||||
publishedAt () {
|
||||
const time = this.announcement['published_at']
|
||||
if (!time) {
|
||||
return
|
||||
}
|
||||
|
||||
return this.formatTimeOrDate(time, localeService.internalToBrowserLocale(this.$i18n.locale))
|
||||
},
|
||||
startsAt () {
|
||||
const time = this.announcement['starts_at']
|
||||
if (!time) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue