diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-02 19:19:58 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-02 19:19:58 +0900 |
| commit | 534e43f72d5f261dfd4bb250f671de7651a919c2 (patch) | |
| tree | db592646dac58792ca3fe5d7df38295393021c12 /src/client/app/mobile | |
| parent | Merge pull request #1673 from syuilo/l10n_master (diff) | |
| download | sharkey-534e43f72d5f261dfd4bb250f671de7651a919c2.tar.gz sharkey-534e43f72d5f261dfd4bb250f671de7651a919c2.tar.bz2 sharkey-534e43f72d5f261dfd4bb250f671de7651a919c2.zip | |
Fix bug
Diffstat (limited to 'src/client/app/mobile')
| -rw-r--r-- | src/client/app/mobile/views/components/notification.vue | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/client/app/mobile/views/components/notification.vue b/src/client/app/mobile/views/components/notification.vue index 9228950209..bbcae05f10 100644 --- a/src/client/app/mobile/views/components/notification.vue +++ b/src/client/app/mobile/views/components/notification.vue @@ -66,15 +66,15 @@ </div> <template v-if="notification.type == 'quote'"> - <mk-note :note="notification.note"/> + <mk-note :note="notification.note" @update:note="onNoteUpdated"/> </template> <template v-if="notification.type == 'reply'"> - <mk-note :note="notification.note"/> + <mk-note :note="notification.note" @update:note="onNoteUpdated"/> </template> <template v-if="notification.type == 'mention'"> - <mk-note :note="notification.note"/> + <mk-note :note="notification.note" @update:note="onNoteUpdated"/> </template> </div> </template> @@ -89,6 +89,17 @@ export default Vue.extend({ return { getNoteSummary }; + }, + methods: { + onNoteUpdated(note) { + switch (this.notification.type) { + case 'quote': + case 'reply': + case 'mention': + Vue.set(this.notification, 'note', note); + break; + } + } } }); </script> |