From 9beddc941a716f1322ae0b7d71d159edd642a399 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 20 Feb 2019 16:35:00 +0900 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E4=BF=A1=E3=81=8C=E9=81=B7=E7=A7=BB?= =?UTF-8?q?=E5=BE=8C=E3=82=82=E6=AE=8B=E3=82=8A=E7=B6=9A=E3=81=91=E3=82=8B?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + .../app/mobile/views/components/note-detail.vue | 16 ++++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fdf032a811..70376499d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ unreleased ---------- * モバイル版でも連携サービスを表示するように * webfingerのacceptが反映されない問題を修正 +* 返信が遷移後も残り続ける問題を修正 * デザインの調整 10.87.4 diff --git a/src/client/app/mobile/views/components/note-detail.vue b/src/client/app/mobile/views/components/note-detail.vue index e00ecd5ffa..c4403dbd62 100644 --- a/src/client/app/mobile/views/components/note-detail.vue +++ b/src/client/app/mobile/views/components/note-detail.vue @@ -122,19 +122,23 @@ export default Vue.extend({ }; }, - mounted() { - // Get replies - if (!this.compact) { + watch: { + note() { + this.fetchReplies(); + } + }, + + methods: { + fetchReplies() { + if (this.compact) return; this.$root.api('notes/replies', { noteId: this.appearNote.id, limit: 8 }).then(replies => { this.replies = replies; }); - } - }, + }, - methods: { fetchConversation() { this.conversationFetching = true;