Fix #4333
This commit is contained in:
		
							parent
							
								
									893795a31d
								
							
						
					
					
						commit
						ed0fdaddbd
					
				
					 3 changed files with 29 additions and 11 deletions
				
			
		| 
						 | 
					@ -1,6 +1,10 @@
 | 
				
			||||||
ChangeLog
 | 
					ChangeLog
 | 
				
			||||||
=========
 | 
					=========
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					unreleased
 | 
				
			||||||
 | 
					----------
 | 
				
			||||||
 | 
					* デッキでユーザーを表示したときにタイムラインが残存する問題を修正
 | 
				
			||||||
 | 
					
 | 
				
			||||||
10.87.5
 | 
					10.87.5
 | 
				
			||||||
----------
 | 
					----------
 | 
				
			||||||
* モバイル版でも連携サービスを表示するように
 | 
					* モバイル版でも連携サービスを表示するように
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -91,6 +91,9 @@ export default Vue.extend({
 | 
				
			||||||
	watch: {
 | 
						watch: {
 | 
				
			||||||
		queue(q) {
 | 
							queue(q) {
 | 
				
			||||||
			this.count(q.length);
 | 
								this.count(q.length);
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							makePromise() {
 | 
				
			||||||
 | 
								this.init();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -115,12 +118,12 @@ export default Vue.extend({
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		reload() {
 | 
							reload() {
 | 
				
			||||||
			this.queue = [];
 | 
					 | 
				
			||||||
			this.notes = [];
 | 
					 | 
				
			||||||
			this.init();
 | 
								this.init();
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		init() {
 | 
							init() {
 | 
				
			||||||
 | 
								this.queue = [];
 | 
				
			||||||
 | 
								this.notes = [];
 | 
				
			||||||
			this.fetching = true;
 | 
								this.fetching = true;
 | 
				
			||||||
			this.makePromise().then(x => {
 | 
								this.makePromise().then(x => {
 | 
				
			||||||
				if (Array.isArray(x)) {
 | 
									if (Array.isArray(x)) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -61,7 +61,24 @@ export default Vue.extend({
 | 
				
			||||||
		return {
 | 
							return {
 | 
				
			||||||
			withFiles: false,
 | 
								withFiles: false,
 | 
				
			||||||
			images: [],
 | 
								images: [],
 | 
				
			||||||
			makePromise: cursor => this.$root.api('users/notes', {
 | 
								makePromise: null
 | 
				
			||||||
 | 
							};
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						watch: {
 | 
				
			||||||
 | 
							user() {
 | 
				
			||||||
 | 
								this.genPromiseMaker();
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						created() {
 | 
				
			||||||
 | 
							this.fetch();
 | 
				
			||||||
 | 
							this.genPromiseMaker();
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						methods: {
 | 
				
			||||||
 | 
							genPromiseMaker() {
 | 
				
			||||||
 | 
								this.makePromise = cursor => this.$root.api('users/notes', {
 | 
				
			||||||
				userId: this.user.id,
 | 
									userId: this.user.id,
 | 
				
			||||||
				limit: fetchLimit + 1,
 | 
									limit: fetchLimit + 1,
 | 
				
			||||||
				untilId: cursor ? cursor : undefined,
 | 
									untilId: cursor ? cursor : undefined,
 | 
				
			||||||
| 
						 | 
					@ -82,15 +99,9 @@ export default Vue.extend({
 | 
				
			||||||
						cursor: null
 | 
											cursor: null
 | 
				
			||||||
					};
 | 
										};
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			})
 | 
								});
 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	created() {
 | 
					 | 
				
			||||||
		this.fetch();
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	methods: {
 | 
					 | 
				
			||||||
		fetch() {
 | 
							fetch() {
 | 
				
			||||||
			const image = [
 | 
								const image = [
 | 
				
			||||||
				'image/jpeg',
 | 
									'image/jpeg',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue