Don't show “load more” if there is nothing more (followers)

pull/913/head
marcin mikołajczak 7 years ago committed by GitHub
parent 7437b07d5a
commit 50e7d61f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -702,7 +702,8 @@ export default {
if(res.data.length > 0) { if(res.data.length > 0) {
this.following.push(...res.data); this.following.push(...res.data);
this.followingCursor++; this.followingCursor++;
} else { }
if(res.data.length < 10) {
this.followingMore = false; this.followingMore = false;
} }
}); });
@ -719,7 +720,8 @@ export default {
if(res.data.length > 0) { if(res.data.length > 0) {
this.followers.push(...res.data); this.followers.push(...res.data);
this.followerCursor++; this.followerCursor++;
} else { }
if(res.data.length < 10) {
this.followerMore = false; this.followerMore = false;
} }
}); });

Loading…
Cancel
Save