sidebar: collapsed calendar: make todo count update properly

This commit is contained in:
end-4 2025-03-15 16:52:55 +01:00
parent 9b8bcedb8c
commit 23c3f18fa8

View file

@ -233,9 +233,9 @@ export const ModuleCalendar = () => {
vpack: 'center',
className: 'txt txt-small sidebar-calendar-collapsed-pill',
label: `${Todo.todo_json.length} ${getString('To do tasks')}`,
setup: self => self.hook(Todo, (self) => {
setup: (self) => self.hook(Todo, (self) => {
self.label = `${Todo.todo_json.length} ${getString('To do tasks')}`
})
}, 'updated')
}),
]
})