Selaa lähdekoodia

Update Timeline.vue

marcin mikołajczak 6 vuotta sitten
vanhempi
commit
ea978dff45
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      resources/assets/js/components/Timeline.vue

+ 7 - 1
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();
 			},
 
@@ -908,7 +911,10 @@
 				.then(res => {
 					this.followers = res.data;
 					this.followerCursor++;
-				})	
+				})
+                if(res.data.length < 10) {
+					this.followerMore = false;
+				}
 				this.$refs.followerModal.show();
 			},