This commit is contained in:
syuilo 2019-02-20 22:21:12 +09:00
parent 893795a31d
commit ed0fdaddbd
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
3 changed files with 29 additions and 11 deletions

View file

@ -1,6 +1,10 @@
ChangeLog
=========
unreleased
----------
* デッキでユーザーを表示したときにタイムラインが残存する問題を修正
10.87.5
----------
* モバイル版でも連携サービスを表示するように

View file

@ -91,6 +91,9 @@ export default Vue.extend({
watch: {
queue(q) {
this.count(q.length);
},
makePromise() {
this.init();
}
},
@ -115,12 +118,12 @@ export default Vue.extend({
},
reload() {
this.queue = [];
this.notes = [];
this.init();
},
init() {
this.queue = [];
this.notes = [];
this.fetching = true;
this.makePromise().then(x => {
if (Array.isArray(x)) {

View file

@ -61,7 +61,24 @@ export default Vue.extend({
return {
withFiles: false,
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,
limit: fetchLimit + 1,
untilId: cursor ? cursor : undefined,
@ -82,15 +99,9 @@ export default Vue.extend({
cursor: null
};
}
})
};
},
});
},
created() {
this.fetch();
},
methods: {
fetch() {
const image = [
'image/jpeg',