Skip to content

Commit

Permalink
[Fleet] Add color distinction between offline and inactive agents (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacqary committed May 24, 2021
1 parent f95bbb3 commit 71acd98
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const colorToHexMap = {
accent: visColors[2],
warning: visColors[5],
danger: visColors[9],
inactive: '#98A2B3',
};

export const AGENT_STATUSES: SimplifiedAgentStatus[] = [
Expand All @@ -34,8 +35,9 @@ export function getColorForAgentStatus(agentStatus: SimplifiedAgentStatus): stri
case 'healthy':
return colorToHexMap.secondary;
case 'offline':
case 'inactive':
return colorToHexMap.default;
case 'inactive':
return colorToHexMap.inactive;
case 'unhealthy':
return colorToHexMap.warning;
case 'updating':
Expand Down

0 comments on commit 71acd98

Please sign in to comment.