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>
|
</div>
|
||||||
<ds-text class="username" align="left" size="small" color="soft">
|
<ds-text class="username" align="left" size="small" color="soft">
|
||||||
{{ userName | truncate(18) }}
|
{{ userName | truncate(18) }}
|
||||||
<base-icon name="clock" />
|
|
||||||
<template v-if="dateTime">
|
<template v-if="dateTime">
|
||||||
|
<base-icon name="clock" />
|
||||||
<hc-relative-date-time :date-time="dateTime" />
|
<hc-relative-date-time :date-time="dateTime" />
|
||||||
<slot name="dateTime"></slot>
|
<slot name="dateTime"></slot>
|
||||||
</template>
|
</template>
|
||||||
</ds-text>
|
</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>
|
</div>
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
</template>
|
</template>
|
||||||
@ -114,7 +106,6 @@ export default {
|
|||||||
showAvatar: { type: Boolean, default: true },
|
showAvatar: { type: Boolean, default: true },
|
||||||
trunc: { type: Number, default: 18 }, // "-1" is no trunc
|
trunc: { type: Number, default: 18 }, // "-1" is no trunc
|
||||||
dateTime: { type: [Date, String], default: null },
|
dateTime: { type: [Date, String], default: null },
|
||||||
// positionDatetime: { type: String, default: 'sideward' }, // 'below' is the otherone
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user