summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-20 16:35:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-20 16:35:00 +0900
commit9beddc941a716f1322ae0b7d71d159edd642a399 (patch)
tree21b780564e946dbed45c32fdd38af8cd9525bd0d /src/client
parentNew Crowdin translations (#4328) (diff)
downloadmisskey-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.vue16
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;