Add status to project information
This commit is contained in:
parent
c9dd247175
commit
b6497d499f
4 changed files with 4 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ logbook.filter(task => {
|
|||
notes: todo.notes() || null,
|
||||
status: todo.status(),
|
||||
completion_date: todo.completionDate(),
|
||||
project: proj && { id: proj.id(), title: proj.name() },
|
||||
project: proj && { id: proj.id(), title: proj.name(), status: proj.status() },
|
||||
area: area && { id: area.id(), title: area.name() },
|
||||
tags: [...tags, ...todo.tagNames().split(', ')].filter(t => t),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ logbook.filter(task => {
|
|||
notes: todo.notes() || null,
|
||||
status: todo.status(),
|
||||
completion_date: todo.completionDate(),
|
||||
project: proj && { id: proj.id(), title: proj.name() },
|
||||
project: proj && { id: proj.id(), title: proj.name(), status: proj.status() },
|
||||
area: area && { id: area.id(), title: area.name() },
|
||||
tags: [...tags, ...todo.tagNames().split(', ')].filter(t => t),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ pub enum Status {
|
|||
pub struct Project {
|
||||
pub id: String,
|
||||
pub title: String,
|
||||
pub status: Status,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ today.forEach(todo => {
|
|||
notes: todo.notes() || null,
|
||||
status: todo.status(),
|
||||
completion_date: todo.completionDate(),
|
||||
project: proj && { id: proj.id(), title: proj.name() },
|
||||
project: proj && { id: proj.id(), title: proj.name(), status: proj.status() },
|
||||
area: area && { id: area.id(), title: area.name() },
|
||||
tags: [...tags, ...todo.tagNames().split(', ')].filter(t => t),
|
||||
});
|
||||
|
|
|
|||
Reference in a new issue