adding assignee to tui
This commit is contained in:
@@ -47,15 +47,16 @@ func getTableColumns(width int) []TableColumn {
|
||||
return []TableColumn{
|
||||
{width: 10, label: "ID", key: "id"},
|
||||
{width: 20, label: "TITLE", key: "title"},
|
||||
{width: 15, label: "STATUS", key: "status"},
|
||||
{width: 13, label: "STATUS", key: "status"},
|
||||
}
|
||||
default:
|
||||
return []TableColumn{
|
||||
{width: 12, label: "ID", key: "id"},
|
||||
{width: 20, label: "TITLE", key: "title"},
|
||||
{width: 15, label: "STATUS", key: "status"},
|
||||
{width: 10, label: "TYPE", key: "type"},
|
||||
{width: 15, label: "PRIORITY", key: "priority"},
|
||||
{width: 10, label: "ID", key: "id"},
|
||||
{width: 24, label: "TITLE", key: "title"},
|
||||
{width: 14, label: "STATUS", key: "status"},
|
||||
{width: 11, label: "TYPE", key: "type"},
|
||||
{width: 13, label: "PRIORITY", key: "priority"},
|
||||
{width: 13, label: "ASSIGNEE", key: "assignee"},
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -340,6 +341,8 @@ func getColumnValue(col TableColumn, issue ListIssue) string {
|
||||
return string(issue.Issue.IssueType)
|
||||
case "priority":
|
||||
return priorityCodeName(issue.Issue.Priority)
|
||||
case "assignee":
|
||||
return issue.Issue.Assignee
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user