Removed the responsability of the component "RelativeDateTime" to know if it is rendered in a browser

cc @ulfgebhardt
This commit is contained in:
Wolfgang Huß 2019-04-10 16:46:32 +02:00
parent 12fff83f27
commit cc05ea11b5
2 changed files with 3 additions and 5 deletions

View File

@ -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 ===

View File

@ -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>