(row guestRow)
| 515 | } |
| 516 | |
| 517 | func agentStateCell(row guestRow) (string, tcell.Color) { |
| 518 | switch { |
| 519 | case row.agentEnabled && row.agentRunning: |
| 520 | return "Running", theme.Colors.Success |
| 521 | case row.agentEnabled: |
| 522 | return "Enabled", theme.Colors.Warning |
| 523 | default: |
| 524 | return "Disabled", theme.Colors.Secondary |
| 525 | } |
| 526 | } |