add color for created status containers, update default sortfield

This commit is contained in:
Bradley Cicenas 2017-03-01 12:09:05 +11:00
parent 1c74377cbd
commit 094be99764
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@ var params = []*Param{
},
&Param{
Key: "sortField",
Val: "id",
Val: "state",
Label: "Container Sort Field",
},
}

View File

@ -126,6 +126,9 @@ func (row *Compact) SetStatus(val string) {
case "paused":
row.Status.Text = fmt.Sprintf("%s%s", vBar, vBar)
row.Status.TextFgColor = ui.ColorDefault
case "created":
row.Status.Text = mark
row.Status.TextFgColor = ui.ColorDefault
default:
row.Status.Text = mark
row.Status.TextFgColor = ui.ColorRed