소스 검색

Update Profile and Timeline components

Daniel Supernault 6 년 전
부모
커밋
153494c94f
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      resources/assets/js/components/Profile.vue
  2. 3 0
      resources/assets/js/components/Timeline.vue

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

@@ -580,6 +580,9 @@ export default {
 		},
 		},
 
 
 		infiniteTimeline($state) {
 		infiniteTimeline($state) {
+			if(this.loading) {
+				return;
+			}
 			let apiUrl = '/api/v1/accounts/' + this.profileId + '/statuses';
 			let apiUrl = '/api/v1/accounts/' + this.profileId + '/statuses';
 			axios.get(apiUrl, {
 			axios.get(apiUrl, {
 				params: {
 				params: {

+ 3 - 0
resources/assets/js/components/Timeline.vue

@@ -489,6 +489,9 @@
 			},
 			},
 
 
 			infiniteTimeline($state) {
 			infiniteTimeline($state) {
+				if(this.loading) {
+					return;
+				}
 				let apiUrl = false;
 				let apiUrl = false;
 				switch(this.scope) {
 				switch(this.scope) {
 					case 'home':
 					case 'home':