diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-20 16:35:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-20 16:35:00 +0900 |
| commit | 9beddc941a716f1322ae0b7d71d159edd642a399 (patch) | |
| tree | 21b780564e946dbed45c32fdd38af8cd9525bd0d /src/client | |
| parent | New Crowdin translations (#4328) (diff) | |
| download | misskey-9beddc941a716f1322ae0b7d71d159edd642a399.tar.gz misskey-9beddc941a716f1322ae0b7d71d159edd642a399.tar.bz2 misskey-9beddc941a716f1322ae0b7d71d159edd642a399.zip | |
返信が遷移後も残り続ける問題を修正
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/mobile/views/components/note-detail.vue | 16 |
1 files changed, 10 insertions, 6 deletions
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; |