d0c4312923
* Create GridCollection for nodes page with styling * Update ListCollection styling * Update TagList styling * Create CompositeRow styling component * Update ConsulServiceList component with styling * Create service health-checks helper * Add InstanceCount to the service model * Add tag-svg to codebase * Create and update tests for service-list page * Upgrade @hashicorp/consul-api-double to 2.14.0
17 lines
372 B
JavaScript
17 lines
372 B
JavaScript
import { helper } from '@ember/component/helper';
|
|
|
|
export function healthChecks([item], hash) {
|
|
switch (true) {
|
|
case item.ChecksCritical !== 0:
|
|
return 'critical';
|
|
case item.ChecksWarning !== 0:
|
|
return 'warning';
|
|
case item.ChecksPassing !== 0:
|
|
return 'passing';
|
|
default:
|
|
return 'empty';
|
|
}
|
|
}
|
|
|
|
export default helper(healthChecks);
|