mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Change Infinity to exact count.
This commit is contained in:
parent
f7c870b178
commit
0b7e0fbc4b
@ -6,7 +6,7 @@
|
|||||||
:allProfilesCount="allConnectionsCount"
|
:allProfilesCount="allConnectionsCount"
|
||||||
:profiles="connections"
|
:profiles="connections"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@fetchAllProfiles="$emit('fetchAllConnections', type)"
|
@fetchAllProfiles="$emit('fetchAllConnections', type, allConnectionsCount)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@ -384,9 +384,9 @@ export default {
|
|||||||
this.user.followedByCurrentUser = followedByCurrentUser
|
this.user.followedByCurrentUser = followedByCurrentUser
|
||||||
this.user.followedBy = followedBy
|
this.user.followedBy = followedBy
|
||||||
},
|
},
|
||||||
fetchAllConnections(type) {
|
fetchAllConnections(type, count) {
|
||||||
if (type === 'following') this.followingCount = Infinity
|
if (type === 'following') this.followingCount = count
|
||||||
if (type === 'followedBy') this.followedByCount = Infinity
|
if (type === 'followedBy') this.followedByCount = count
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
apollo: {
|
apollo: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user