Change sort timing to update event is received

This commit is contained in:
kPherox 2019-04-25 21:59:34 +09:00
parent a0ce20d829
commit 67afe14c02
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -16,7 +16,7 @@
{{value.name}}
<!--とりあえずここに書かせて-->
<TimelineToot
v-for="[id,status] in sortedStatus(value.statuses)"
v-for="[id,status] in value.statuses"
:key="id"
:status="status"
:pref-static="pref.static"
@ -120,6 +120,7 @@ export default class AddColumn extends Vue {
// update
let updateListener = (_: Event, status: Status) => {
timeline.statuses.set(status.id, status)
timeline.statuses = this.sortedStatus(timeline.statuses)
this.$forceUpdate()
}
ipcRenderer.on(`update-${timeline.name}-no-auth`, updateListener)