mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 09:23:18 +00:00
Don't show tasks with no time data in Calendar
This commit is contained in:
parent
e5275c5ed9
commit
d27cf89eee
1 changed files with 3 additions and 0 deletions
|
@ -126,6 +126,9 @@ ColumnLayout {
|
|||
|
||||
Repeater {
|
||||
model: backend.tasks.filter(task => {
|
||||
if (task.startTime == "" || task.endTime == "") {
|
||||
return false
|
||||
}
|
||||
const date = new Date(internal.weekStartDate)
|
||||
date.setDate(internal.weekStartDate.getDate() + index)
|
||||
return task.date === date.toLocaleDateString(Qt.locale(), "yyyy-MM-dd")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue