fix: enable stopping restarting containers

Show stop for restartig containers, so that if a container is in a restart loop can stop the loop
This commit is contained in:
Jack Wills
2022-05-30 01:10:08 +00:00
parent 3a7e3974f5
commit 9573512e92
+1
View File
@@ -160,6 +160,7 @@ impl DockerControls {
match state {
State::Dead | State::Exited => vec![Self::Start, Self::Restart],
State::Paused => vec![Self::Unpause, Self::Stop],
State::Restarting => vec![Self::Stop],
State::Running => vec![Self::Pause, Self::Restart, Self::Stop],
_ => vec![],
}