mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
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:
@@ -260,6 +260,7 @@ class NodeDetails extends React.Component {
|
||||
name={details.label}
|
||||
metadata={details.metadata}
|
||||
pseudo={details.pseudo}
|
||||
topologyId={topologyId}
|
||||
/>
|
||||
</CloudFeature>
|
||||
</div>
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user