mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add clock icon inside if clause
This commit is contained in:
parent
085b59bf4d
commit
26b4d4ab93
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user