Change sort timing to update event is received
This commit is contained in:
parent
a0ce20d829
commit
67afe14c02
|
@ -16,7 +16,7 @@
|
||||||
{{value.name}}
|
{{value.name}}
|
||||||
<!--とりあえずここに書かせて-->
|
<!--とりあえずここに書かせて-->
|
||||||
<TimelineToot
|
<TimelineToot
|
||||||
v-for="[id,status] in sortedStatus(value.statuses)"
|
v-for="[id,status] in value.statuses"
|
||||||
:key="id"
|
:key="id"
|
||||||
:status="status"
|
:status="status"
|
||||||
:pref-static="pref.static"
|
:pref-static="pref.static"
|
||||||
|
@ -120,6 +120,7 @@ export default class AddColumn extends Vue {
|
||||||
// updateイベントを購読
|
// updateイベントを購読
|
||||||
let updateListener = (_: Event, status: Status) => {
|
let updateListener = (_: Event, status: Status) => {
|
||||||
timeline.statuses.set(status.id, status)
|
timeline.statuses.set(status.id, status)
|
||||||
|
timeline.statuses = this.sortedStatus(timeline.statuses)
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
ipcRenderer.on(`update-${timeline.name}-no-auth`, updateListener)
|
ipcRenderer.on(`update-${timeline.name}-no-auth`, updateListener)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user