Add clock icon inside if clause

This commit is contained in:
mattwr18 2019-12-04 19:37:21 +01:00
parent 085b59bf4d
commit 26b4d4ab93

View File

@ -17,20 +17,12 @@
</div>
<ds-text class="username" align="left" size="small" color="soft">
{{ userName | truncate(18) }}
<base-icon name="clock" />
<template v-if="dateTime">
<base-icon name="clock" />
<hc-relative-date-time :date-time="dateTime" />
<slot name="dateTime"></slot>
</template>
</ds-text>
<!-- dateTime: kind of same as above: make own component?
<ds-text v-if="positionDatetime === 'below' && dateTime" size="small" color="soft">
<base-icon name="clock" />
<client-only>
<hc-relative-date-time :date-time="dateTime" />
</client-only>
<slot name="dateTime"></slot>
</ds-text> -->
</div>
</nuxt-link>
</template>
@ -114,7 +106,6 @@ export default {
showAvatar: { type: Boolean, default: true },
trunc: { type: Number, default: 18 }, // "-1" is no trunc
dateTime: { type: [Date, String], default: null },
// positionDatetime: { type: String, default: 'sideward' }, // 'below' is the otherone
},
computed: {
...mapGetters({