diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index f9689a59e..8ab81b985 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -671,6 +671,9 @@ export default { .then(res => { this.following = res.data; this.followingCursor++; + if(res.data.length < 10) { + this.followingMore = false; + } }); this.$refs.followingModal.show(); }, @@ -688,7 +691,10 @@ export default { .then(res => { this.followers = res.data; this.followerCursor++; - }) + if(res.data.length < 10) { + this.followerMore = false; + } + }) this.$refs.followerModal.show(); }, @@ -702,7 +708,8 @@ export default { if(res.data.length > 0) { this.following.push(...res.data); this.followingCursor++; - } else { + } + if(res.data.length < 10) { this.followingMore = false; } }); @@ -719,7 +726,8 @@ export default { if(res.data.length > 0) { this.followers.push(...res.data); this.followerCursor++; - } else { + } + if(res.data.length < 10) { this.followerMore = false; } }); diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index bdae7548c..4d698771d 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -892,6 +892,9 @@ this.following = res.data; this.followingCursor++; }); + if(res.data.length < 10) { + this.followingMore = false; + } this.$refs.followingModal.show(); }, @@ -909,6 +912,9 @@ this.followers = res.data; this.followerCursor++; }) + if(res.data.length < 10) { + this.followerMore = false; + } this.$refs.followerModal.show(); }, @@ -922,7 +928,8 @@ if(res.data.length > 0) { this.following.push(...res.data); this.followingCursor++; - } else { + } + if(res.data.length < 10) { this.followingMore = false; } }); @@ -939,7 +946,8 @@ if(res.data.length > 0) { this.followers.push(...res.data); this.followerCursor++; - } else { + } + if(res.data.length < 10) { this.followerMore = false; } });