mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
enable remove action for "created" state containers
This commit is contained in:
2
menus.go
2
menus.go
@@ -129,7 +129,7 @@ func ContainerMenu() MenuFn {
|
||||
if c.Meta["state"] == "running" {
|
||||
items = append(items, menu.Item{Val: "stop", Label: "stop"})
|
||||
}
|
||||
if c.Meta["state"] == "exited" {
|
||||
if c.Meta["state"] == "exited" || c.Meta["state"] == "created" {
|
||||
items = append(items, menu.Item{Val: "start", Label: "start"})
|
||||
items = append(items, menu.Item{Val: "remove", Label: "remove"})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user