+
+
+
+
+
+
+ )
+};
InstanceCard.propTypes = {
instance: PropTypes.object,
onOptionsClick: PropTypes.func,
- toggleCollapsed: PropTypes.func
+ toggleCollapsed: PropTypes.func,
+ onHealthMouseOver: PropTypes.func,
+ onStatusMouseOver: PropTypes.func,
+ onMouseOut: PropTypes.func
};
export default InstanceCard;
diff --git a/packages/cp-frontend/src/components/services/list-item.js b/packages/cp-frontend/src/components/services/list-item.js
index c230036b..1e7673cf 100644
--- a/packages/cp-frontend/src/components/services/list-item.js
+++ b/packages/cp-frontend/src/components/services/list-item.js
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import styled from 'styled-components';
import forceArray from 'force-array';
import sortBy from 'lodash.sortby';
+import { isNot } from 'styled-is';
import { InstancesIcon, HealthyIcon, UnhealthyIcon } from 'joyent-ui-toolkit';
import Status from './status';
@@ -27,10 +28,16 @@ const StyledCardHeader = styled(CardHeader)`
const TitleInnerContainer = styled.div`
display: flex;
flex-direction: row;
- justify-content: center;
+ justify-content: left;
align-items: center;
`;
+const StyledAnchor = styled(Anchor)`
+ ${isNot('active')`
+ color: ${props => props.theme.text}
+ `};
+`;
+
const ServiceListItem = ({
onQuickActionsClick = () => {},
deploymentGroup = '',
@@ -42,7 +49,7 @@ const ServiceListItem = ({
};
const children = sortBy(forceArray(service.children), ['slug']);
- const isServiceInactive = service.status && service.status !== 'ACTIVE';
+ // const isServiceInactive = service.status && service.status !== 'ACTIVE';
const to = `/deployment-groups/${deploymentGroup}/services/${service.slug}`;
const instancesCount = children.length
@@ -64,9 +71,9 @@ const ServiceListItem = ({
: