Merge pull request #913 from m4sk1n/patch-1

Don't show “load more” if there is nothing more to load
pull/916/head
daniel 2019-02-28 17:58:41 -07:00 zatwierdzone przez GitHub
commit 4905ae5fea
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 21 dodań i 5 usunięć

Wyświetl plik

@ -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;
}
});

Wyświetl plik

@ -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;
}
});