Kaynağa Gözat

Update Profile.vue

marcin mikołajczak 6 yıl önce
ebeveyn
işleme
46d8ff90f8
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6 0
      resources/assets/js/components/Profile.vue

+ 6 - 0
resources/assets/js/components/Profile.vue

@@ -671,6 +671,9 @@ export default {
 			.then(res => {
 			.then(res => {
 				this.following = res.data;
 				this.following = res.data;
 				this.followingCursor++;
 				this.followingCursor++;
+                if(res.data.length < 10) {
+					this.followingMore = false;
+				}
 			});
 			});
 			this.$refs.followingModal.show();
 			this.$refs.followingModal.show();
 		},
 		},
@@ -688,6 +691,9 @@ export default {
 			.then(res => {
 			.then(res => {
 				this.followers = res.data;
 				this.followers = res.data;
 				this.followerCursor++;
 				this.followerCursor++;
+                if(res.data.length < 10) {
+					this.followerMore = false;
+				}
 			})	
 			})	
 			this.$refs.followerModal.show();
 			this.$refs.followerModal.show();
 		},
 		},