mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
improved pagination on profile page
This commit is contained in:
parent
09b4b707bc
commit
a26937d093
@ -52,13 +52,14 @@ export default gql(`
|
||||
}
|
||||
}
|
||||
contributionsCount
|
||||
contributions(first: $first, offset: $offset) {
|
||||
contributions(first: $first, offset: $offset, orderBy: createdAt_desc) {
|
||||
id
|
||||
slug
|
||||
title
|
||||
contentExcerpt
|
||||
shoutedCount
|
||||
commentsCount
|
||||
deleted
|
||||
image
|
||||
createdAt
|
||||
author {
|
||||
|
||||
@ -179,7 +179,7 @@
|
||||
</ds-card>
|
||||
</ds-flex-item>
|
||||
<ds-flex-item
|
||||
v-for="post in user.contributions"
|
||||
v-for="post in user.contributions.filter(post => !post.deleted)"
|
||||
:width="{ base: '100%', md: '100%', xl: '50%' }"
|
||||
:key="post.id">
|
||||
<hc-post-card
|
||||
@ -192,7 +192,8 @@
|
||||
margin-top="large"
|
||||
style="text-align: center">
|
||||
<ds-button
|
||||
icon="arrow-down"
|
||||
:icon="$apollo.loading ? 'spinner' : 'arrow-down'"
|
||||
:disabled="$apollo.loading"
|
||||
ghost
|
||||
@click="showMoreContributions">
|
||||
mehr laden
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user