Add date relative date on comments

This commit is contained in:
aonomike 2019-06-03 23:36:04 +03:00
parent 3c1629ca3f
commit f7e5c7bf2c

View File

@ -7,7 +7,7 @@
</div> </div>
<div v-else :class="{ comment: true, 'disabled-content': comment.deleted || comment.disabled }"> <div v-else :class="{ comment: true, 'disabled-content': comment.deleted || comment.disabled }">
<ds-space margin-bottom="x-small"> <ds-space margin-bottom="x-small">
<hc-user :user="author" /> <hc-user :user="author" :date-time="comment.createdAt" />
</ds-space> </ds-space>
<no-ssr> <no-ssr>
<content-menu <content-menu
@ -43,6 +43,7 @@ export default {
return {} return {}
}, },
}, },
dateTime: { type: [Date, String], default: null },
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({