summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/app/mobile/views/components/notification.vue17
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>