summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-20 22:21:12 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-20 22:21:12 +0900
commited0fdaddbd030e208fe0fbdf20700bf7be0ffbc7 (patch)
treea03f5aa1f5e7d57b36cf67a1be0b6587ab45b7ab
parentUpdate some logs (diff)
downloadsharkey-ed0fdaddbd030e208fe0fbdf20700bf7be0ffbc7.tar.gz
sharkey-ed0fdaddbd030e208fe0fbdf20700bf7be0ffbc7.tar.bz2
sharkey-ed0fdaddbd030e208fe0fbdf20700bf7be0ffbc7.zip
Fix #4333
-rw-r--r--CHANGELOG.md4
-rw-r--r--src/client/app/desktop/views/deck/deck.notes.vue7
-rw-r--r--src/client/app/desktop/views/deck/deck.user-column.home.vue29
3 files changed, 29 insertions, 11 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index edcafa6079..6c7c9d508a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,10 @@
ChangeLog
=========
+unreleased
+----------
+* デッキでユーザーを表示したときにタイムラインが残存する問題を修正
+
10.87.5
----------
* モバイル版でも連携サービスを表示するように
diff --git a/src/client/app/desktop/views/deck/deck.notes.vue b/src/client/app/desktop/views/deck/deck.notes.vue
index e7fa9fd52a..5868985647 100644
--- a/src/client/app/desktop/views/deck/deck.notes.vue
+++ b/src/client/app/desktop/views/deck/deck.notes.vue
@@ -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)) {
diff --git a/src/client/app/desktop/views/deck/deck.user-column.home.vue b/src/client/app/desktop/views/deck/deck.user-column.home.vue
index 90fd2f5a09..06604a29bc 100644
--- a/src/client/app/desktop/views/deck/deck.user-column.home.vue
+++ b/src/client/app/desktop/views/deck/deck.user-column.home.vue
@@ -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',