Task rename added. Closes #3

- Moved title of TaskDetail panel to separate component
- Refactored indentation, formatting
- Updated status bar
This commit is contained in:
Anis Ahmad
2020-07-11 07:48:16 +06:00
parent 1508edce6f
commit 533c28f8bc
7 changed files with 116 additions and 23 deletions

View File

@@ -97,11 +97,11 @@ func makeTaskListingTitle(task model.Task) string {
prefix := ""
if projectPane.GetActiveProject() == nil {
if project, err := projectRepo.GetByID(task.ProjectID); err == nil {
prefix = project.Title + ":"
prefix = project.Title + ": "
}
}
return fmt.Sprintf("[%s] %s %s %s", getTaskTitleColor(task), prefix, checkbox, task.Title)
return fmt.Sprintf("[%s]%s %s%s", getTaskTitleColor(task), checkbox, prefix, task.Title)
}
func findProjectByID(id int64) *model.Project {