add clickedCount to PostTeaser

This commit is contained in:
Moriz Wahl 2021-02-22 21:13:24 +01:00
parent 4611e298f5
commit d3eafc9b69
4 changed files with 137 additions and 129 deletions

View File

@ -34,6 +34,11 @@
:count="post.commentsCount"
:title="$t('contribution.amount-comments', { amount: post.commentsCount })"
/>
<counter-icon
icon="eye"
:count="post.clickedCount"
:title="$t('contribution.amount-clicks', { amount: post.clickedCount })"
/>
<client-only>
<content-menu
resource-type="contribution"

View File

@ -67,6 +67,7 @@ export const postCountsFragment = gql`
shoutedCount
shoutedByCurrentUser
emotionsCount
clickedCount
}
`

View File

@ -174,6 +174,7 @@
}
},
"contribution": {
"amount-clicks": "{amount} clicks",
"amount-comments": "{amount} comments",
"amount-shouts": "{amount} recommendations",
"categories": {

View File

@ -174,6 +174,7 @@
}
},
"contribution": {
"amount-clicks": "{amount} clicks",
"amount-comments": "{amount} comments",
"amount-shouts": "{amount} recommendations",
"categories": {