mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
Fix bug
This commit is contained in:
parent
821a9a723c
commit
8e8d1a7627
1 changed files with 14 additions and 3 deletions
|
@ -66,15 +66,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template v-if="notification.type == 'quote'">
|
<template v-if="notification.type == 'quote'">
|
||||||
<mk-note :note="notification.note"/>
|
<mk-note :note="notification.note" @update:note="onNoteUpdated"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="notification.type == 'reply'">
|
<template v-if="notification.type == 'reply'">
|
||||||
<mk-note :note="notification.note"/>
|
<mk-note :note="notification.note" @update:note="onNoteUpdated"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="notification.type == 'mention'">
|
<template v-if="notification.type == 'mention'">
|
||||||
<mk-note :note="notification.note"/>
|
<mk-note :note="notification.note" @update:note="onNoteUpdated"/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -89,6 +89,17 @@ export default Vue.extend({
|
||||||
return {
|
return {
|
||||||
getNoteSummary
|
getNoteSummary
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onNoteUpdated(note) {
|
||||||
|
switch (this.notification.type) {
|
||||||
|
case 'quote':
|
||||||
|
case 'reply':
|
||||||
|
case 'mention':
|
||||||
|
Vue.set(this.notification, 'note', note);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue