show create dates where possible

This commit is contained in:
Grzegorz Leoniec 2018-10-26 15:15:50 +02:00
parent a26937d093
commit 1af35ea4cf
4 changed files with 9 additions and 4 deletions

View File

@ -28,7 +28,7 @@
<ds-text <ds-text
size="small" size="small"
color="soft"> color="soft">
{{ post.createdAt | date }} {{ post.createdAt | dateTime }}
</ds-text> </ds-text>
</template> </template>
</div> </div>

View File

@ -46,6 +46,7 @@ export default {
id id
title title
contentExcerpt contentExcerpt
createdAt
slug slug
image image
author { author {

View File

@ -137,6 +137,7 @@ export default {
comments(orderBy: _id_desc) { comments(orderBy: _id_desc) {
id id
contentExcerpt contentExcerpt
createdAt
deleted deleted
author { author {
User { User {
@ -168,7 +169,8 @@ export default {
return { return {
slug: this.$route.params.slug slug: this.$route.params.slug
} }
} },
fetchPolicy: 'cache-and-network'
} }
} }
} }

View File

@ -286,7 +286,8 @@ export default {
...fetchMoreResult.User[0].contributions ...fetchMoreResult.User[0].contributions
] ]
return output return output
} },
fetchPolicy: 'cache-and-network'
}) })
} }
}, },
@ -299,7 +300,8 @@ export default {
first: this.pageSize, first: this.pageSize,
offset: 0 offset: 0
} }
} },
fetchPolicy: 'cache-and-network'
} }
} }
} }