Fixes bug showing "container image status" on all resource types

- It should only be visible on the kubernetes contoller node-details
  panels.
- This fixes a bug where we were showing it on all node-details if you
  were on the controller topology.
This commit is contained in:
Simon Howe
2018-02-05 11:45:13 +01:00
parent 35d97bc2bd
commit d5829f21cb
2 changed files with 3 additions and 3 deletions

View File

@@ -260,6 +260,7 @@ class NodeDetails extends React.Component {
name={details.label}
metadata={details.metadata}
pseudo={details.pseudo}
topologyId={topologyId}
/>
</CloudFeature>
</div>

View File

@@ -39,8 +39,8 @@ class NodeDetailsImageStatus extends React.PureComponent {
}
shouldRender() {
const { pseudo, currentTopologyId } = this.props;
return !pseudo && currentTopologyId && topologyWhitelist.includes(currentTopologyId);
const { pseudo, topologyId } = this.props;
return !pseudo && topologyId && topologyWhitelist.includes(topologyId);
}
renderImages() {
@@ -118,7 +118,6 @@ function mapStateToProps({ scope }, { metadata, name }) {
return {
isFetching,
errors,
currentTopologyId: scope.get('currentTopologyId'),
containers,
serviceId
};