mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Removed the responsability of the component "RelativeDateTime" to know if it is rendered in a browser
cc @ulfgebhardt
This commit is contained in:
parent
12fff83f27
commit
cc05ea11b5
@ -44,10 +44,6 @@ export default {
|
||||
// Calculate Relative Date
|
||||
this.relativeDateTime = this.$filters.relativeDateTime(this.dateTime)
|
||||
|
||||
if (!process.browser) {
|
||||
return
|
||||
}
|
||||
|
||||
// TODO It is unclear what exactly this does and how to archive it
|
||||
/*if (
|
||||
this.relativeDateTime ===
|
||||
|
||||
@ -60,7 +60,9 @@
|
||||
color="soft"
|
||||
>
|
||||
<ds-icon name="clock" />
|
||||
<hc-relative-date-time :date-time="dateTime" />
|
||||
<no-ssr>
|
||||
<hc-relative-date-time :date-time="dateTime" />
|
||||
</no-ssr>
|
||||
</ds-text>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user