Add directional status icons for service commands
Replace generic hourglass with specific arrows: - ↑ (up) for starting services - ↓ (down) for stopping services - ↻ (circular) for restarting services Provides immediate visual feedback for service operations.
This commit is contained in:
parent
b3c67f4b7f
commit
8978356c49
@ -135,13 +135,15 @@ impl ServicesWidget {
|
||||
match status {
|
||||
CommandStatus::InProgress { command_type, target, .. } => {
|
||||
if target == service_name {
|
||||
let status_text = match command_type {
|
||||
CommandType::ServiceRestart => "restarting",
|
||||
CommandType::ServiceStart => "starting",
|
||||
CommandType::ServiceStop => "stopping",
|
||||
_ => &info.status,
|
||||
};
|
||||
return ("⏳".to_string(), status_text.to_string(), Theme::highlight());
|
||||
// Only show special icons for service commands
|
||||
if let Some((icon, status_text)) = match command_type {
|
||||
CommandType::ServiceRestart => Some(("↻", "restarting")),
|
||||
CommandType::ServiceStart => Some(("↑", "starting")),
|
||||
CommandType::ServiceStop => Some(("↓", "stopping")),
|
||||
_ => None, // Don't handle non-service commands here
|
||||
} {
|
||||
return (icon.to_string(), status_text.to_string(), Theme::highlight());
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {} // Success/Failed states will show normal status
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user