feat: show done tasks strikethrough
This commit is contained in:
parent
af529eef0a
commit
c39e9d5c62
1 changed files with 5 additions and 4 deletions
|
@ -118,6 +118,7 @@ function transformTaskToGanttBar(t: TaskModel) {
|
|||
color: t.startDate ? (colorIsDark(t.getHexColor()) ? black : 'white') : black,
|
||||
backgroundColor: t.startDate ? t.getHexColor() : 'var(--grey-100)',
|
||||
border: t.startDate ? '' : '2px dashed var(--grey-300)',
|
||||
'text-decoration': t.done ? 'line-through' : null,
|
||||
},
|
||||
},
|
||||
}]
|
||||
|
@ -137,9 +138,9 @@ async function loadTasks() {
|
|||
const params = {
|
||||
sort_by: ['start_date', 'done', 'id'],
|
||||
order_by: ['asc', 'asc', 'desc'],
|
||||
filter_by: ['done', 'start_date', 'start_date'],
|
||||
filter_comparator: ['equals', 'greater_equals', 'less_equals'],
|
||||
filter_value: ['false', props.dateFrom, props.dateTo],
|
||||
filter_by: ['start_date', 'start_date'],
|
||||
filter_comparator: ['greater_equals', 'less_equals'],
|
||||
filter_value: [props.dateFrom, props.dateTo],
|
||||
filter_concat: 'and',
|
||||
filter_include_nulls: true,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue