Skip to content
Snippets Groups Projects
Unverified Commit ed0fdadd authored by syuilo's avatar syuilo
Browse files

Fix #4333

parent 893795a3
No related branches found
No related tags found
No related merge requests found
ChangeLog
=========
unreleased
----------
* デッキでユーザーを表示したときにタイムラインが残存する問題を修正
10.87.5
----------
* モバイル版でも連携サービスを表示するように
......
......@@ -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)) {
......
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment