mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-25 22:10:47 +00:00
Don't show “load more” if there is nothing more (followers)
This commit is contained in:
parent
7437b07d5a
commit
50e7d61f6e
1 changed files with 5 additions and 3 deletions
|
@ -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…
Reference in a new issue