mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
add color for created status containers, update default sortfield
This commit is contained in:
parent
1c74377cbd
commit
094be99764
@ -14,7 +14,7 @@ var params = []*Param{
|
||||
},
|
||||
&Param{
|
||||
Key: "sortField",
|
||||
Val: "id",
|
||||
Val: "state",
|
||||
Label: "Container Sort Field",
|
||||
},
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user