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