From 153494c94fb2623edeaeaccc0fb228f99439684e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 21 Apr 2019 21:04:46 -0600 Subject: [PATCH] Update Profile and Timeline components --- resources/assets/js/components/Profile.vue | 3 +++ resources/assets/js/components/Timeline.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index 05623cb68..b94a845d6 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -580,6 +580,9 @@ export default { }, infiniteTimeline($state) { + if(this.loading) { + return; + } let apiUrl = '/api/v1/accounts/' + this.profileId + '/statuses'; axios.get(apiUrl, { params: { diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index 7d0226434..d9af2e8f8 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -489,6 +489,9 @@ }, infiniteTimeline($state) { + if(this.loading) { + return; + } let apiUrl = false; switch(this.scope) { case 'home':