1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-24 07:06:31 +09:00
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 ChangeLog
========= =========
unreleased
----------
* デッキでユーザーを表示したときにタイムラインが残存する問題を修正
10.87.5 10.87.5
---------- ----------
* モバイル版でも連携サービスを表示するように * モバイル版でも連携サービスを表示するように

View File

@ -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)) {

View File

@ -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',